Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Oct 31, 2023
1 parent 8ee3a02 commit cebd27c
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 18 deletions.
1 change: 0 additions & 1 deletion proto/sdk/blocksdk/v1/blocksdk.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "gogoproto/gogo.proto";
import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";


option go_package = "github.com/skip-mev/block-sdk/x/blocksdk/types";

message Lane {
Expand Down
4 changes: 1 addition & 3 deletions proto/sdk/blocksdk/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import "sdk/blocksdk/v1/blocksdk.proto";

// GenesisState defines the genesis state of the x/blocksdk module.
message GenesisState {
repeated Lane lanes = 1 [(gogoproto.nullable) = false];


repeated Lane lanes = 1 [ (gogoproto.nullable) = false ];
}
12 changes: 4 additions & 8 deletions proto/sdk/blocksdk/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,20 @@ import "sdk/blocksdk/v1/blocksdk.proto";

// Query defines the x/blocksdk querier service.
service Query {
rpc Lane(QueryLaneRequest) returns(QueryLaneResponse){
rpc Lane(QueryLaneRequest) returns (QueryLaneResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/block-sdk/blocksdk/v1/lane/{id}";
}

rpc Lanes(QueryLanesRequest) returns(QueryLanesResponse) {
rpc Lanes(QueryLanesRequest) returns (QueryLanesResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/block-sdk/blocksdk/v1/lanes";
}
}

message QueryLaneRequest {
string id = 1;
}
message QueryLaneRequest { string id = 1; }

message QueryLaneResponse {
Lane lane = 1 [ (gogoproto.nullable) = false ];
}
message QueryLaneResponse { Lane lane = 1 [ (gogoproto.nullable) = false ]; }

message QueryLanesRequest {}

Expand Down
2 changes: 1 addition & 1 deletion proto/sdk/blocksdk/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import "sdk/blocksdk/v1/blocksdk.proto";
service Msg {
option (cosmos.msg.v1.service) = true;

rpc RegisterLane(MsgRegisterLane) returns (MsgRegisterLaneResponse){
rpc RegisterLane(MsgRegisterLane) returns (MsgRegisterLaneResponse) {
option (google.api.http).post = "/block-sdk/blocksdk/v1/register_lane";
}
rpc UpdateLane(MsgUpdateLane) returns (MsgUpdateLaneResponse) {
Expand Down
1 change: 1 addition & 0 deletions x/blocksdk/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cli

import (
"fmt"

"github.com/cosmos/cosmos-sdk/client/flags"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/blocksdk/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package cli

import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/skip-mev/block-sdk/x/blocksdk/types"
"github.com/spf13/cobra"

"github.com/skip-mev/block-sdk/x/blocksdk/types"
)

// NewTxCmd returns a root CLI command handler for all x/blocksdk transaction
Expand Down
1 change: 0 additions & 1 deletion x/blocksdk/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) {
for _, lane := range gs.Lanes {
k.SetLane(ctx, lane)
}

}

// ExportGenesis returns a GenesisState for a given context.
Expand Down
2 changes: 2 additions & 0 deletions x/blocksdk/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package keeper

import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/x/blocksdk/types"
)

Expand Down
4 changes: 3 additions & 1 deletion x/blocksdk/keeper/keeper.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package keeper

import (
"fmt"

"cosmossdk.io/log"
"cosmossdk.io/store/prefix"
storetypes "cosmossdk.io/store/types"
"fmt"

"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"

Expand Down
3 changes: 2 additions & 1 deletion x/blocksdk/keeper/keeper_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package keeper_test

import (
"cosmossdk.io/math"
"testing"

"cosmossdk.io/math"

storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 2 additions & 0 deletions x/blocksdk/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package keeper
import (
"context"
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/x/blocksdk/types"
)

Expand Down
1 change: 1 addition & 0 deletions x/blocksdk/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

"cosmossdk.io/math"

testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/blocksdk/types"
)
Expand Down
4 changes: 3 additions & 1 deletion x/blocksdk/types/msgs.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package types

import (
"fmt"

"cosmossdk.io/errors"
"cosmossdk.io/math"
"fmt"

sdk "github.com/cosmos/cosmos-sdk/types"
)

Expand Down

0 comments on commit cebd27c

Please sign in to comment.