-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix epochs modules tests * Remove debug code * Fix altered API usage within superfluid * Add changelog entry * Add more AddEpochInfo checks * Fix superfluid tests * Update osmoutils/slice_helper.go Co-authored-by: Aleksandr Bezobchuk <[email protected]> * Changelog nit * Apply Roman's suggestions! Co-authored-by: Roman <[email protected]> * add const * Apply roman's suggestion of tests w/ non-default values * Apply roman's comment update suggestions * AddEpochInfo comment * fix gomod order Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Roman <[email protected]> (cherry picked from commit 21f7f98) # Conflicts: # CHANGELOG.md # go.mod # x/epochs/abci_test.go # x/epochs/keeper/epoch.go # x/epochs/keeper/genesis.go # x/superfluid/keeper/keeper.go # x/superfluid/keeper/twap_price_test.go
- Loading branch information
1 parent
81d9c6b
commit ca55559
Showing
12 changed files
with
188 additions
and
70 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package osmoutils | ||
|
||
import ( | ||
"sort" | ||
|
||
"golang.org/x/exp/constraints" | ||
) | ||
|
||
// SortSlice sorts a slice of type T elements that implement constraints.Ordered. | ||
func SortSlice[T constraints.Ordered](s []T) { | ||
sort.Slice(s, func(i, j int) bool { | ||
return s[i] < s[j] | ||
}) | ||
} |
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
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
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.