-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic implementation of DecreaseLiquidity and IncreaseLiquidity
- Loading branch information
Showing
8 changed files
with
3,442 additions
and
37 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,42 @@ | ||
syntax = "proto3"; | ||
|
||
package sunrise.liquiditypool; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
|
||
option go_package = "github.com/sunriselayer/sunrise/x/liquiditypool/types"; | ||
|
||
message TickInfo { | ||
uint64 pool_id = 1; | ||
int64 tick_index = 2; | ||
string liquidity_gross = 3 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.moretags) = "yaml:\"liquidity_gross\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
string liquidity_net = 4 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(gogoproto.moretags) = "yaml:\"liquidity_net\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
repeated cosmos.base.v1beta1.DecCoin fee_growth = 5 [ | ||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", | ||
(gogoproto.nullable) = false | ||
]; | ||
UptimeTrackers uptime_trackers = 6 [ | ||
(gogoproto.moretags) = "yaml:\"uptime_trackers\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
message UptimeTrackers { | ||
repeated UptimeTracker list = 1 [ (gogoproto.nullable) = false ]; | ||
} | ||
|
||
message UptimeTracker { | ||
repeated cosmos.base.v1beta1.DecCoin uptime_growth_outside = 1 [ | ||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", | ||
(gogoproto.nullable) = false | ||
]; | ||
} |
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.