Skip to content

Commit

Permalink
Add basic pool state, Make outlines for JoinPool (#3057)
Browse files Browse the repository at this point in the history
* Add pool state, basic outline for join pool

* Remove comment

* Fix lint

* change from code review
  • Loading branch information
mattverse authored Oct 19, 2022
1 parent b80d159 commit b45f003
Show file tree
Hide file tree
Showing 7 changed files with 824 additions and 18 deletions.
39 changes: 39 additions & 0 deletions proto/osmosis/concentrated-liquidity/concentratedPool.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,43 @@ message Pool {

string address = 1 [ (gogoproto.moretags) = "yaml:\"address\"" ];
uint64 id = 2;

// Amount of total liquidity
string liquidity = 3 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"liquidity\"",
(gogoproto.nullable) = false
];

string token0 = 4;
string token1 = 5;

string current_sqrt_price = 6 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"spot_price\"",
(gogoproto.nullable) = false
];
string current_tick = 7 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"current_tick\"",
(gogoproto.nullable) = false
];
}

message TickInfo {
bool initialized = 1;
// sum of all non-normalized pool weights
string liquidity = 2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"liquidity\"",
(gogoproto.nullable) = false
];
}

message Position {
string liquidity = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"liquidity\"",
(gogoproto.nullable) = false
];
}
Loading

0 comments on commit b45f003

Please sign in to comment.