forked from zeitgeistpm/zeitgeist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rikiddo] Implement Rikiddo trait and tests - part 1 (zeitgeistpm#218)
* Chang trait generics to associated types * Define RikkidoConfig and RikiddoSigmoidMV types * Add missing file * Add dummy Rikiddo implementations * Prepare FeeSigmoid for incorporation of min_revenue * Add min_revenue and type conversion to fee calculation * Fix signed to unsigned conversion * Implement RikiddoMV trait for RikiddoSigmoidMV * Partially implement tests for RikiddoMV trait implementation * Implement tests for RikiddoMV trait implementation * Implement fee retrieval within RikiddoSigmoidMV * Implement more tests for Rikiddo's get_fee() * Complete Rikiddo's tests for get_fee() * Extend RikiddoConfig and implement convert function * Complete type conversion functions * Start implementation of type conversion tests * Implement fixed point type conversion tests * Add min_revenue check to sigmoid fee test * Partially implement Rikiddo's cost function * Continue Rikiddos cost implementation * Implement cost strategy selection and default strategy * Implement Rikiddo's cost function * Fix fee calculation: Add initial_fee to sigmoid result * Implement Rikiddo default() and new() test * Implement tests for default ln_sum_exp strategy * Complete ln_sum_exp tests for both strategies * Partially implement overflow tests for Rikiddo's cost function * Partially implement overflow tests for Rikiddo's cost function * Implement remaining Rikiddo cost tests * Implement tx count per period estimation * Simplify SigmoidFee implementation * Improve code style
- Loading branch information
Showing
10 changed files
with
1,168 additions
and
136 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.