-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create dedicated PoolMetadata storage Add associated lookups and refs --------- Co-authored-by: Julian Compagni Portis <julian@terrascope.io>
- Loading branch information
1 parent
d1a0d14
commit 9ede0f2
Showing
58 changed files
with
3,345 additions
and
936 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
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.