-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign ID for poolDenom #456
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1986552
basic proto fix
57baad8
fix stake distr tests
0c57685
cleaner pool equality check
6191935
Preserve pool ids even if no reserves exist
7b62d71
fix pool query
e25398c
depositDenom => poolDenom
10a3e3f
switch to storing only pool ID
d680f05
fix GetStakeRefKeys tests
e4fefc4
remove dead code
24fbabd
add PoolByID query
8eff2ad
Clarify name for SafeUint64
cbcd2a3
save
878e768
Cleaner poolMetadata storage
e2b39d3
random fixes
9b6a941
update protos
43cc141
Small cleanup + comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
package duality.dex; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "duality/dex/params.proto"; | ||
import "duality/dex/limit_order_tranche_user.proto"; | ||
import "duality/dex/limit_order_tranche.proto"; | ||
import "duality/dex/tick_liquidity.proto"; | ||
import "duality/dex/pool_metadata.proto"; | ||
|
||
// this line is used by starport scaffolding # genesis/proto/import | ||
|
||
option go_package = "github.com/duality-labs/duality/x/dex/types"; | ||
|
||
// GenesisState defines the dex module's genesis state. | ||
message GenesisState { | ||
Params params = 1 [(gogoproto.nullable) = false]; | ||
repeated TickLiquidity tickLiquidityList = 2 [(gogoproto.nullable) = true]; | ||
repeated LimitOrderTranche inactiveLimitOrderTrancheList = 6 [(gogoproto.nullable) = true]; | ||
repeated LimitOrderTrancheUser limitOrderTrancheUserList = 7 [(gogoproto.nullable) = true]; | ||
|
||
|
||
Params params = 1 [(gogoproto.nullable) = false]; | ||
repeated TickLiquidity tickLiquidityList = 2 [(gogoproto.nullable) = true ]; | ||
repeated LimitOrderTranche inactiveLimitOrderTrancheList = 3 [(gogoproto.nullable) = true ]; | ||
repeated LimitOrderTrancheUser limitOrderTrancheUserList = 4 [(gogoproto.nullable) = true ]; | ||
repeated PoolMetadata poolMetadataList = 5 [(gogoproto.nullable) = false]; | ||
uint64 poolCount = 6; | ||
// this line is used by starport scaffolding # genesis/proto/state | ||
} | ||
|
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,13 @@ | ||
syntax = "proto3"; | ||
package duality.dex; | ||
|
||
option go_package = "github.com/duality-labs/duality/x/dex/types"; | ||
|
||
import "duality/dex/pair_id.proto"; | ||
|
||
message PoolMetadata { | ||
uint64 ID = 1; | ||
int64 tick = 2; | ||
uint64 fee = 3; | ||
PairID pairID = 4; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment that this is not stored in DB