-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TRA-418] Add upgrade handler and test for x/revshare module state in…
…itialization (#1783) Signed-off-by: Shrenuj Bansal <shrenuj@dydx.exchange>
- Loading branch information
Showing
4 changed files
with
116 additions
and
0 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,26 @@ | ||
package types | ||
|
||
import sdk "github.com/cosmos/cosmos-sdk/types" | ||
|
||
type RevShareKeeper interface { | ||
// MarketMapperRevenueShareParams | ||
SetMarketMapperRevenueShareParams( | ||
ctx sdk.Context, | ||
params MarketMapperRevenueShareParams, | ||
) (err error) | ||
GetMarketMapperRevenueShareParams( | ||
ctx sdk.Context, | ||
) (params MarketMapperRevenueShareParams) | ||
|
||
// MarketMapperRevShareDetails | ||
SetMarketMapperRevShareDetails( | ||
ctx sdk.Context, | ||
marketId uint32, | ||
params MarketMapperRevShareDetails, | ||
) | ||
GetMarketMapperRevShareDetails( | ||
ctx sdk.Context, | ||
marketId uint32, | ||
) (params MarketMapperRevShareDetails, err error) | ||
CreateNewMarketRevShare(ctx sdk.Context, marketId uint32) | ||
} |