feat: x/blocksdk types and keeper outline (#187)

* module proto

* lane proto

* proto-gen

* proto-format

* regenerate

* genesis

* stub

* test

* comment

* new keeper functions

* finalize

* lint fix

* proto format

* encounteredLanes
This commit is contained in:
Alex Johnson
2023-11-03 13:42:23 -04:00
committed by GitHub
parent d451d7a167
commit ef654f5cbf
11 changed files with 917 additions and 5 deletions
+6 -5
View File
@@ -27,10 +27,11 @@ message Lane {
(gogoproto.nullable) = false
];
// order is the priority ordering of the Lane when processed in PrepareProposal
// and ProcessProposal. Lane orders should be set in order of priority starting from 0,
// monotonically increasing and non-overlapping. A lane with a lower order value
// will have a higher priority over a lane with a higher order value. For example,
// if LaneA has priority of 0 and LaneB has a priority of 1, LaneA has priority over LaneB.
// order is the priority ordering of the Lane when processed in
// PrepareProposal and ProcessProposal. Lane orders should be set in order of
// priority starting from 0, monotonically increasing and non-overlapping. A
// lane with a lower order value will have a higher priority over a lane with
// a higher order value. For example, if LaneA has priority of 0 and LaneB
// has a priority of 1, LaneA has priority over LaneB.
uint64 order = 3;
}
+13
View File
@@ -0,0 +1,13 @@
syntax = "proto3";
package sdk.blocksdk.v1;
option go_package = "github.com/skip-mev/block-sdk/x/blocksdk/types";
import "gogoproto/gogo.proto";
import "sdk/blocksdk/v1/blocksdk.proto";
// GenesisState defines the genesis state of the x/blocksdk module.
message GenesisState {
// lanes is the list of all configured lanes at genesis time.
repeated Lane lanes = 1 [ (gogoproto.nullable) = false ];
}