diff --git a/abci/abci.go b/abci/abci.go index 6bfde2d..167a198 100644 --- a/abci/abci.go +++ b/abci/abci.go @@ -13,7 +13,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool" "github.com/skip-mev/pob/mempool" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) type ProposalHandler struct { @@ -67,7 +67,7 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { bidTxSize := int64(len(bidTxBz)) if bidTxSize <= req.MaxTxBytes { - bidMsg, ok := tmpBidTx.GetMsgs()[0].(*auctiontypes.MsgAuctionBid) + bidMsg, ok := tmpBidTx.GetMsgs()[0].(*buildertypes.MsgAuctionBid) if !ok { // This should never happen, as CheckTx will ensure only valid bids // enter the mempool, but in case it does, we need to remove the diff --git a/abci/abci_test.go b/abci/abci_test.go index 929bff0..1fed3f2 100644 --- a/abci/abci_test.go +++ b/abci/abci_test.go @@ -15,9 +15,9 @@ import ( "github.com/skip-mev/pob/abci" "github.com/skip-mev/pob/mempool" testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/auction/ante" - "github.com/skip-mev/pob/x/auction/keeper" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/ante" + "github.com/skip-mev/pob/x/builder/keeper" + buildertypes "github.com/skip-mev/pob/x/builder/types" "github.com/stretchr/testify/suite" ) @@ -35,13 +35,13 @@ type ABCITestSuite struct { auctionBidAmount sdk.Coins minBidIncrement sdk.Coins - // auction setup - auctionKeeper keeper.Keeper + // builder setup + builderKeeper keeper.Keeper bankKeeper *testutils.MockBankKeeper accountKeeper *testutils.MockAccountKeeper distrKeeper *testutils.MockDistributionKeeper stakingKeeper *testutils.MockStakingKeeper - auctionDecorator ante.AuctionDecorator + builderDecorator ante.BuilderDecorator key *storetypes.KVStoreKey authorityAccount sdk.AccAddress @@ -60,7 +60,7 @@ func (suite *ABCITestSuite) SetupTest() { // General config suite.encodingConfig = testutils.CreateTestEncodingConfig() suite.random = rand.New(rand.NewSource(time.Now().Unix())) - suite.key = storetypes.NewKVStoreKey(auctiontypes.StoreKey) + suite.key = storetypes.NewKVStoreKey(buildertypes.StoreKey) testCtx := testutil.DefaultContextWithDB(suite.T(), suite.key, storetypes.NewTransientStoreKey("transient_test")) suite.ctx = testCtx.Ctx @@ -72,14 +72,14 @@ func (suite *ABCITestSuite) SetupTest() { // Mock keepers set up ctrl := gomock.NewController(suite.T()) suite.accountKeeper = testutils.NewMockAccountKeeper(ctrl) - suite.accountKeeper.EXPECT().GetModuleAddress(auctiontypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes() + suite.accountKeeper.EXPECT().GetModuleAddress(buildertypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes() suite.bankKeeper = testutils.NewMockBankKeeper(ctrl) suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl) suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl) suite.authorityAccount = sdk.AccAddress([]byte("authority")) - // Auction keeper / decorator set up - suite.auctionKeeper = keeper.NewKeeper( + // Builder keeper / decorator set up + suite.builderKeeper = keeper.NewKeeper( suite.encodingConfig.Codec, suite.key, suite.accountKeeper, @@ -88,9 +88,9 @@ func (suite *ABCITestSuite) SetupTest() { suite.stakingKeeper, suite.authorityAccount.String(), ) - err := suite.auctionKeeper.SetParams(suite.ctx, auctiontypes.DefaultParams()) + err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.DefaultParams()) suite.Require().NoError(err) - suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) + suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) // Accounts set up suite.accounts = testutils.RandomAccounts(suite.random, 1) @@ -141,7 +141,7 @@ func (suite *ABCITestSuite) executeAnteHandler(tx sdk.Tx) (sdk.Context, error) { return ctx, nil } - return suite.auctionDecorator.AnteHandle(suite.ctx, tx, false, next) + return suite.builderDecorator.AnteHandle(suite.ctx, tx, false, next) } func (suite *ABCITestSuite) createFilledMempool(numNormalTxs, numAuctionTxs, numBundledTxs int, insertRefTxs bool) int { @@ -241,7 +241,7 @@ func (suite *ABCITestSuite) exportMempool(exportRefTxs bool) [][]byte { txs = append(txs, txBz) if exportRefTxs { - for _, refRawTx := range auctionTx.GetMsgs()[0].(*auctiontypes.MsgAuctionBid).GetTransactions() { + for _, refRawTx := range auctionTx.GetMsgs()[0].(*buildertypes.MsgAuctionBid).GetTransactions() { txs = append(txs, refRawTx) seenTxs[string(refRawTx)] = true } @@ -483,15 +483,15 @@ func (suite *ABCITestSuite) TestPrepareProposal() { suite.createFilledMempool(numNormalTxs, numAuctionTxs, numBundledTxs, insertRefTxs) // create a new auction - params := auctiontypes.Params{ + params := buildertypes.Params{ MaxBundleSize: maxBundleSize, ReserveFee: reserveFee, MinBuyInFee: minBuyInFee, FrontRunningProtection: frontRunningProtection, MinBidIncrement: suite.minBidIncrement, } - suite.auctionKeeper.SetParams(suite.ctx, params) - suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) + suite.builderKeeper.SetParams(suite.ctx, params) + suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) handler := suite.proposalHandler.PrepareProposalHandler() res := handler(suite.ctx, abcitypes.RequestPrepareProposal{ @@ -731,15 +731,15 @@ func (suite *ABCITestSuite) TestProcessProposal() { } // create a new auction - params := auctiontypes.Params{ + params := buildertypes.Params{ MaxBundleSize: maxBundleSize, ReserveFee: reserveFee, MinBuyInFee: minBuyInFee, FrontRunningProtection: frontRunningProtection, MinBidIncrement: suite.minBidIncrement, } - suite.auctionKeeper.SetParams(suite.ctx, params) - suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) + suite.builderKeeper.SetParams(suite.ctx, params) + suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), suite.mempool) suite.Require().Equal(tc.isTopBidValid, suite.isTopBidValid()) txs := suite.exportMempool(exportRefTxs) diff --git a/mempool/mempool_test.go b/mempool/mempool_test.go index b91b409..6443fd2 100644 --- a/mempool/mempool_test.go +++ b/mempool/mempool_test.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/skip-mev/pob/mempool" testutils "github.com/skip-mev/pob/testutils" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" "github.com/stretchr/testify/suite" ) @@ -158,7 +158,7 @@ func (suite *IntegrationTestSuite) TestAuctionMempoolSelect() { tx := auctionIterator.Tx() suite.Require().Len(tx.GetMsgs(), 1) - msgAuctionBid := tx.GetMsgs()[0].(*auctiontypes.MsgAuctionBid) + msgAuctionBid := tx.GetMsgs()[0].(*buildertypes.MsgAuctionBid) if highestBid == nil { highestBid = msgAuctionBid.Bid prevBid = msgAuctionBid.Bid diff --git a/mempool/tx.go b/mempool/tx.go index f9328fb..fba2395 100644 --- a/mempool/tx.go +++ b/mempool/tx.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/signing" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) // WrappedBidTx defines a wrapper around an sdk.Tx that contains a single @@ -28,10 +28,10 @@ func (wbtx *WrappedBidTx) GetBid() sdk.Coins { return wbtx.bid } // GetMsgAuctionBidFromTx attempts to retrieve a MsgAuctionBid from an sdk.Tx if // one exists. If a MsgAuctionBid does exist and other messages are also present, // an error is returned. If no MsgAuctionBid is present, is returned. -func GetMsgAuctionBidFromTx(tx sdk.Tx) (*auctiontypes.MsgAuctionBid, error) { - auctionBidMsgs := make([]*auctiontypes.MsgAuctionBid, 0) +func GetMsgAuctionBidFromTx(tx sdk.Tx) (*buildertypes.MsgAuctionBid, error) { + auctionBidMsgs := make([]*buildertypes.MsgAuctionBid, 0) for _, msg := range tx.GetMsgs() { - t, ok := msg.(*auctiontypes.MsgAuctionBid) + t, ok := msg.(*buildertypes.MsgAuctionBid) if ok { auctionBidMsgs = append(auctionBidMsgs, t) } diff --git a/mempool/tx_test.go b/mempool/tx_test.go index 0583d9e..1e1e848 100644 --- a/mempool/tx_test.go +++ b/mempool/tx_test.go @@ -7,7 +7,7 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" pobcodec "github.com/skip-mev/pob/codec" "github.com/skip-mev/pob/mempool" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" "github.com/stretchr/testify/require" ) @@ -15,7 +15,7 @@ func TestGetMsgAuctionBidFromTx_Valid(t *testing.T) { encCfg := pobcodec.CreateEncodingConfig() txBuilder := encCfg.TxConfig.NewTxBuilder() - txBuilder.SetMsgs(&auctiontypes.MsgAuctionBid{}) + txBuilder.SetMsgs(&buildertypes.MsgAuctionBid{}) msg, err := mempool.GetMsgAuctionBidFromTx(txBuilder.GetTx()) require.NoError(t, err) @@ -27,8 +27,8 @@ func TestGetMsgAuctionBidFromTx_MultiMsgBid(t *testing.T) { txBuilder := encCfg.TxConfig.NewTxBuilder() txBuilder.SetMsgs( - &auctiontypes.MsgAuctionBid{}, - &auctiontypes.MsgAuctionBid{}, + &buildertypes.MsgAuctionBid{}, + &buildertypes.MsgAuctionBid{}, &banktypes.MsgSend{}, ) @@ -52,7 +52,7 @@ func TestGetUnwrappedTx(t *testing.T) { encCfg := pobcodec.CreateEncodingConfig() txBuilder := encCfg.TxConfig.NewTxBuilder() - txBuilder.SetMsgs(&auctiontypes.MsgAuctionBid{}) + txBuilder.SetMsgs(&buildertypes.MsgAuctionBid{}) tx := txBuilder.GetTx() bid := sdk.NewCoins(sdk.NewCoin("foo", sdk.NewInt(1000000))) diff --git a/proto/pob/auction/v1/genesis.proto b/proto/pob/builder/v1/genesis.proto similarity index 86% rename from proto/pob/auction/v1/genesis.proto rename to proto/pob/builder/v1/genesis.proto index 26ddfab..54c7132 100644 --- a/proto/pob/auction/v1/genesis.proto +++ b/proto/pob/builder/v1/genesis.proto @@ -1,20 +1,20 @@ syntax = "proto3"; -package skipmev.pob.auction.v1; +package skipmev.pob.builder.v1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "amino/amino.proto"; -option go_package = "github.com/skip-mev/pob/x/auction/types"; +option go_package = "github.com/skip-mev/pob/x/builder/types"; -// GenesisState defines the genesis state of the x/auction module. +// GenesisState defines the genesis state of the x/builder module. message GenesisState { Params params = 1 [(gogoproto.nullable) = false]; } -// Params defines the parameters of the x/auction module. +// Params defines the parameters of the x/builder module. message Params { - option (amino.name) = "cosmos-sdk/x/auction/Params"; + option (amino.name) = "cosmos-sdk/x/builder/Params"; // max_bundle_size is the maximum number of transactions that can be bundled // in a single bundle. diff --git a/proto/pob/auction/v1/query.proto b/proto/pob/builder/v1/query.proto similarity index 63% rename from proto/pob/auction/v1/query.proto rename to proto/pob/builder/v1/query.proto index 288898d..c5c22ab 100644 --- a/proto/pob/auction/v1/query.proto +++ b/proto/pob/builder/v1/query.proto @@ -1,20 +1,19 @@ syntax = "proto3"; -package skipmev.pob.auction.v1; +package skipmev.pob.builder.v1; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; -import "cosmos_proto/cosmos.proto"; import "cosmos/query/v1/query.proto"; -import "pob/auction/v1/genesis.proto"; +import "pob/builder/v1/genesis.proto"; -option go_package = "github.com/skip-mev/pob/x/auction/types"; +option go_package = "github.com/skip-mev/pob/x/builder/types"; -// Query defines the x/auction querier service. +// Query defines the x/builder querier service. service Query { - // Params queries the parameters of the x/auction module. + // Params queries the parameters of the x/builder module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/pob/auction/v1/params"; + option (google.api.http).get = "/pob/builder/v1/params"; } } diff --git a/proto/pob/auction/v1/tx.proto b/proto/pob/builder/v1/tx.proto similarity index 75% rename from proto/pob/auction/v1/tx.proto rename to proto/pob/builder/v1/tx.proto index eb5eabe..7a42dfd 100644 --- a/proto/pob/auction/v1/tx.proto +++ b/proto/pob/builder/v1/tx.proto @@ -1,35 +1,35 @@ syntax = "proto3"; -package skipmev.pob.auction.v1; +package skipmev.pob.builder.v1; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "pob/auction/v1/genesis.proto"; +import "pob/builder/v1/genesis.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/msg/v1/msg.proto"; import "amino/amino.proto"; -option go_package = "github.com/skip-mev/pob/x/auction/types"; +option go_package = "github.com/skip-mev/pob/x/builder/types"; -// Msg defines the x/auction Msg service. +// Msg defines the x/builder Msg service. service Msg { option (cosmos.msg.v1.service) = true; - // AuctionBid defines a method for sending bids to the x/auction module. + // AuctionBid defines a method for sending bids to the x/builder module. rpc AuctionBid(MsgAuctionBid) returns (MsgAuctionBidResponse) { - option (google.api.http).post = "/pob/auction/v1/bid"; + option (google.api.http).post = "/pob/builder/v1/bid"; }; - // UpdateParams defines a governance operation for updating the x/auction + // UpdateParams defines a governance operation for updating the x/builder // module parameters. The authority is hard-coded to the x/gov module account. rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); } -// MsgAuctionBid defines a request type for sending bids to the x/auction +// MsgAuctionBid defines a request type for sending bids to the x/builder // module. message MsgAuctionBid { option (cosmos.msg.v1.signer) = "bidder"; - option (amino.name) = "pob/x/auction/MsgAuctionBid"; + option (amino.name) = "pob/x/builder/MsgAuctionBid"; option (gogoproto.equal) = false; @@ -51,18 +51,18 @@ message MsgAuctionBid { // MsgAuctionBidResponse defines the Msg/AuctionBid response type. message MsgAuctionBidResponse {} -// MsgUpdateParams defines a request type for updating the x/auction module +// MsgUpdateParams defines a request type for updating the x/builder module // parameters. message MsgUpdateParams { option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "pob/x/auction/MsgUpdateParams"; + option (amino.name) = "pob/x/builder/MsgUpdateParams"; option (gogoproto.equal) = false; // authority is the address of the account that is authorized to update the - // x/auction module parameters. + // x/builder module parameters. string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; - // params is the new parameters for the x/auction module. + // params is the new parameters for the x/builder module. Params params = 2 [ (gogoproto.nullable) = false ]; } diff --git a/testutils/utils.go b/testutils/utils.go index d49c134..61609cf 100644 --- a/testutils/utils.go +++ b/testutils/utils.go @@ -15,7 +15,7 @@ import ( authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" "github.com/cosmos/cosmos-sdk/x/auth/tx" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) type EncodingConfig struct { @@ -31,7 +31,7 @@ func CreateTestEncodingConfig() EncodingConfig { banktypes.RegisterInterfaces(interfaceRegistry) cryptocodec.RegisterInterfaces(interfaceRegistry) - auctiontypes.RegisterInterfaces(interfaceRegistry) + buildertypes.RegisterInterfaces(interfaceRegistry) codec := codec.NewProtoCodec(interfaceRegistry) @@ -122,7 +122,7 @@ func CreateRandomTx(txCfg client.TxConfig, account Account, nonce, numberMsgs ui } func CreateAuctionTxWithSigners(txCfg client.TxConfig, bidder Account, bid sdk.Coins, nonce uint64, signers []Account) (authsigning.Tx, error) { - bidMsg := &auctiontypes.MsgAuctionBid{ + bidMsg := &buildertypes.MsgAuctionBid{ Bidder: bidder.Address.String(), Bid: bid, Transactions: make([][]byte, len(signers)), @@ -175,8 +175,8 @@ func CreateRandomMsgs(acc sdk.AccAddress, numberMsgs int) []sdk.Msg { return msgs } -func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coins, nonce uint64, numberMsgs int) (*auctiontypes.MsgAuctionBid, error) { - bidMsg := &auctiontypes.MsgAuctionBid{ +func CreateMsgAuctionBid(txCfg client.TxConfig, bidder Account, bid sdk.Coins, nonce uint64, numberMsgs int) (*buildertypes.MsgAuctionBid, error) { + bidMsg := &buildertypes.MsgAuctionBid{ Bidder: bidder.Address.String(), Bid: bid, Transactions: make([][]byte, numberMsgs), diff --git a/x/auction/types/keys.go b/x/auction/types/keys.go deleted file mode 100644 index bdc9ccc..0000000 --- a/x/auction/types/keys.go +++ /dev/null @@ -1,22 +0,0 @@ -package types - -const ( - // ModuleName is the name of the auction module - ModuleName = "auction" - - // StoreKey is the default store key for the auction module - StoreKey = ModuleName - - // RouterKey is the message route for the auction module - RouterKey = ModuleName - - // QuerierRoute is the querier route for the auction module - QuerierRoute = ModuleName -) - -const ( - prefixParams = iota + 1 -) - -// KeyParams is the store key for the auction module's parameters. -var KeyParams = []byte{prefixParams} diff --git a/x/auction/ante/ante.go b/x/builder/ante/ante.go similarity index 80% rename from x/auction/ante/ante.go rename to x/builder/ante/ante.go index 575cbf5..93b364c 100644 --- a/x/auction/ante/ante.go +++ b/x/builder/ante/ante.go @@ -6,21 +6,21 @@ import ( "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/skip-mev/pob/mempool" - "github.com/skip-mev/pob/x/auction/keeper" + "github.com/skip-mev/pob/x/builder/keeper" ) -var _ sdk.AnteDecorator = AuctionDecorator{} +var _ sdk.AnteDecorator = BuilderDecorator{} -type AuctionDecorator struct { - auctionKeeper keeper.Keeper +type BuilderDecorator struct { + builderKeeper keeper.Keeper txDecoder sdk.TxDecoder txEncoder sdk.TxEncoder mempool *mempool.AuctionMempool } -func NewAuctionDecorator(ak keeper.Keeper, txDecoder sdk.TxDecoder, txEncoder sdk.TxEncoder, mempool *mempool.AuctionMempool) AuctionDecorator { - return AuctionDecorator{ - auctionKeeper: ak, +func NewBuilderDecorator(ak keeper.Keeper, txDecoder sdk.TxDecoder, txEncoder sdk.TxEncoder, mempool *mempool.AuctionMempool) BuilderDecorator { + return BuilderDecorator{ + builderKeeper: ak, txDecoder: txDecoder, txEncoder: txEncoder, mempool: mempool, @@ -29,7 +29,7 @@ func NewAuctionDecorator(ak keeper.Keeper, txDecoder sdk.TxDecoder, txEncoder sd // AnteHandle validates that the auction bid is valid if one exists. If valid it will deduct the entrance fee from the // bidder's account. -func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { +func (ad BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { auctionMsg, err := mempool.GetMsgAuctionBidFromTx(tx) if err != nil { return ctx, err @@ -68,7 +68,7 @@ func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, } } - if err := ad.auctionKeeper.ValidateAuctionMsg(ctx, bidder, auctionMsg.Bid, topBid, transactions); err != nil { + if err := ad.builderKeeper.ValidateAuctionMsg(ctx, bidder, auctionMsg.Bid, topBid, transactions); err != nil { return ctx, errors.Wrap(err, "failed to validate auction bid") } } @@ -77,7 +77,7 @@ func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, } // GetTopAuctionBid returns the highest auction bid if one exists. -func (ad AuctionDecorator) GetTopAuctionBid(ctx sdk.Context) (sdk.Coins, error) { +func (ad BuilderDecorator) GetTopAuctionBid(ctx sdk.Context) (sdk.Coins, error) { auctionTx := ad.mempool.GetTopAuctionTx(ctx) if auctionTx == nil { return sdk.NewCoins(), nil @@ -87,7 +87,7 @@ func (ad AuctionDecorator) GetTopAuctionBid(ctx sdk.Context) (sdk.Coins, error) } // IsTopBidTx returns true if the transaction inputted is the highest bidding auction transaction in the mempool. -func (ad AuctionDecorator) IsTopBidTx(ctx sdk.Context, tx sdk.Tx) (bool, error) { +func (ad BuilderDecorator) IsTopBidTx(ctx sdk.Context, tx sdk.Tx) (bool, error) { auctionTx := ad.mempool.GetTopAuctionTx(ctx) if auctionTx == nil { return false, nil diff --git a/x/auction/ante/ante_test.go b/x/builder/ante/ante_test.go similarity index 91% rename from x/auction/ante/ante_test.go rename to x/builder/ante/ante_test.go index 4f476d9..25dd71e 100644 --- a/x/auction/ante/ante_test.go +++ b/x/builder/ante/ante_test.go @@ -11,9 +11,9 @@ import ( "github.com/golang/mock/gomock" "github.com/skip-mev/pob/mempool" testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/auction/ante" - "github.com/skip-mev/pob/x/auction/keeper" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/ante" + "github.com/skip-mev/pob/x/builder/keeper" + buildertypes "github.com/skip-mev/pob/x/builder/types" "github.com/stretchr/testify/suite" ) @@ -25,13 +25,13 @@ type AnteTestSuite struct { encodingConfig testutils.EncodingConfig random *rand.Rand - // auction setup - auctionKeeper keeper.Keeper + // builder setup + builderKeeper keeper.Keeper bankKeeper *testutils.MockBankKeeper accountKeeper *testutils.MockAccountKeeper distrKeeper *testutils.MockDistributionKeeper stakingKeeper *testutils.MockStakingKeeper - auctionDecorator ante.AuctionDecorator + builderDecorator ante.BuilderDecorator key *storetypes.KVStoreKey authorityAccount sdk.AccAddress } @@ -44,19 +44,19 @@ func (suite *AnteTestSuite) SetupTest() { // General config suite.encodingConfig = testutils.CreateTestEncodingConfig() suite.random = rand.New(rand.NewSource(time.Now().Unix())) - suite.key = storetypes.NewKVStoreKey(auctiontypes.StoreKey) + suite.key = storetypes.NewKVStoreKey(buildertypes.StoreKey) testCtx := testutil.DefaultContextWithDB(suite.T(), suite.key, storetypes.NewTransientStoreKey("transient_test")) suite.ctx = testCtx.Ctx // Keepers set up ctrl := gomock.NewController(suite.T()) suite.accountKeeper = testutils.NewMockAccountKeeper(ctrl) - suite.accountKeeper.EXPECT().GetModuleAddress(auctiontypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes() + suite.accountKeeper.EXPECT().GetModuleAddress(buildertypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes() suite.bankKeeper = testutils.NewMockBankKeeper(ctrl) suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl) suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl) suite.authorityAccount = sdk.AccAddress([]byte("authority")) - suite.auctionKeeper = keeper.NewKeeper( + suite.builderKeeper = keeper.NewKeeper( suite.encodingConfig.Codec, suite.key, suite.accountKeeper, @@ -65,7 +65,7 @@ func (suite *AnteTestSuite) SetupTest() { suite.stakingKeeper, suite.authorityAccount.String(), ) - err := suite.auctionKeeper.SetParams(suite.ctx, auctiontypes.DefaultParams()) + err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.DefaultParams()) suite.Require().NoError(err) } @@ -77,7 +77,7 @@ func (suite *AnteTestSuite) executeAnteHandler(tx sdk.Tx, balance sdk.Coins) (sd return ctx, nil } - return suite.auctionDecorator.AnteHandle(suite.ctx, tx, false, next) + return suite.builderDecorator.AnteHandle(suite.ctx, tx, false, next) } func (suite *AnteTestSuite) TestAnteHandler() { @@ -225,7 +225,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { tc.malleate() // Set the auction params - err := suite.auctionKeeper.SetParams(suite.ctx, auctiontypes.Params{ + err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.Params{ MaxBundleSize: maxBundleSize, ReserveFee: reserveFee, MinBuyInFee: minBuyInFee, @@ -251,7 +251,7 @@ func (suite *AnteTestSuite) TestAnteHandler() { suite.Require().NoError(err) // Execute the ante handler - suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), mempool) + suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxDecoder(), suite.encodingConfig.TxConfig.TxEncoder(), mempool) _, err = suite.executeAnteHandler(auctionTx, balance) if tc.pass { suite.Require().NoError(err) diff --git a/x/auction/keeper/auction.go b/x/builder/keeper/auction.go similarity index 100% rename from x/auction/keeper/auction.go rename to x/builder/keeper/auction.go diff --git a/x/auction/keeper/auction_test.go b/x/builder/keeper/auction_test.go similarity index 94% rename from x/auction/keeper/auction_test.go rename to x/builder/keeper/auction_test.go index c53e275..bd7d5a1 100644 --- a/x/auction/keeper/auction_test.go +++ b/x/builder/keeper/auction_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/auction/keeper" - auctiontypes "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/keeper" + buildertypes "github.com/skip-mev/pob/x/builder/types" ) func (suite *KeeperTestSuite) TestValidateAuctionMsg() { @@ -149,11 +149,11 @@ func (suite *KeeperTestSuite) TestValidateAuctionMsg() { tc.malleate() - // Set up the new auction keeper with mocks customized for this test case + // Set up the new builder keeper with mocks customized for this test case suite.bankKeeper.EXPECT().GetAllBalances(suite.ctx, bidder.Address).Return(balance).AnyTimes() suite.bankKeeper.EXPECT().SendCoins(suite.ctx, bidder.Address, escrowAddress, reserveFee).Return(nil).AnyTimes() - suite.auctionKeeper = keeper.NewKeeper( + suite.builderKeeper = keeper.NewKeeper( suite.encCfg.Codec, suite.key, suite.accountKeeper, @@ -162,7 +162,7 @@ func (suite *KeeperTestSuite) TestValidateAuctionMsg() { suite.stakingKeeper, suite.authorityAccount.String(), ) - params := auctiontypes.Params{ + params := buildertypes.Params{ MaxBundleSize: maxBundleSize, ReserveFee: reserveFee, MinBuyInFee: minBuyInFee, @@ -170,7 +170,7 @@ func (suite *KeeperTestSuite) TestValidateAuctionMsg() { FrontRunningProtection: frontRunningProtection, MinBidIncrement: minBidIncrement, } - suite.auctionKeeper.SetParams(suite.ctx, params) + suite.builderKeeper.SetParams(suite.ctx, params) // Create the bundle of transactions ordered by accounts bundle := make([]sdk.Tx, 0) @@ -180,7 +180,7 @@ func (suite *KeeperTestSuite) TestValidateAuctionMsg() { bundle = append(bundle, tx) } - err := suite.auctionKeeper.ValidateAuctionMsg(suite.ctx, bidder.Address, bid, highestBid, bundle) + err := suite.builderKeeper.ValidateAuctionMsg(suite.ctx, bidder.Address, bid, highestBid, bundle) if tc.pass { suite.Require().NoError(err) } else { @@ -291,7 +291,7 @@ func (suite *KeeperTestSuite) TestValidateBundle() { } // Validate the bundle - err := suite.auctionKeeper.ValidateAuctionBundle(bidder.Address, bundle) + err := suite.builderKeeper.ValidateAuctionBundle(bidder.Address, bundle) if tc.pass { suite.Require().NoError(err) } else { diff --git a/x/auction/keeper/genesis.go b/x/builder/keeper/genesis.go similarity index 71% rename from x/auction/keeper/genesis.go rename to x/builder/keeper/genesis.go index d0d66b6..40a38b3 100644 --- a/x/auction/keeper/genesis.go +++ b/x/builder/keeper/genesis.go @@ -2,12 +2,12 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) -// InitGenesis initializes the auction module's state from a given genesis state. +// InitGenesis initializes the builder module's state from a given genesis state. func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) { - // Set the auction module's parameters. + // Set the builder module's parameters. if err := k.SetParams(ctx, gs.Params); err != nil { panic(err) } @@ -15,7 +15,7 @@ func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) { // ExportGenesis returns a GenesisState for a given context. func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState { - // Get the auction module's parameters. + // Get the builder module's parameters. params, err := k.GetParams(ctx) if err != nil { panic(err) diff --git a/x/auction/keeper/grpc_query.go b/x/builder/keeper/grpc_query.go similarity index 69% rename from x/auction/keeper/grpc_query.go rename to x/builder/keeper/grpc_query.go index 8674452..272ff74 100644 --- a/x/auction/keeper/grpc_query.go +++ b/x/builder/keeper/grpc_query.go @@ -4,22 +4,22 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) var _ types.QueryServer = QueryServer{} -// QueryServer defines the auction module's gRPC querier service. +// QueryServer defines the builder module's gRPC querier service. type QueryServer struct { keeper Keeper } -// NewQueryServer creates a new gRPC query server for the auction module. +// NewQueryServer creates a new gRPC query server for the builder module. func NewQueryServer(keeper Keeper) *QueryServer { return &QueryServer{keeper: keeper} } -// Params queries all parameters of the auction module. +// Params queries all parameters of the builder module. func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { ctx := sdk.UnwrapSDKContext(c) diff --git a/x/auction/keeper/keeper.go b/x/builder/keeper/keeper.go similarity index 86% rename from x/auction/keeper/keeper.go rename to x/builder/keeper/keeper.go index 9cd5fca..a93fcb0 100644 --- a/x/auction/keeper/keeper.go +++ b/x/builder/keeper/keeper.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) type Keeper struct { @@ -38,9 +38,9 @@ func NewKeeper( panic(err) } - // Ensure that the auction module account exists. + // Ensure that the builder module account exists. if accountKeeper.GetModuleAddress(types.ModuleName) == nil { - panic("auction module account has not been set") + panic("builder module account has not been set") } return Keeper{ @@ -53,7 +53,7 @@ func NewKeeper( } } -// Logger returns an auction module-specific logger. +// Logger returns a builder module-specific logger. func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", "x/"+types.ModuleName) } @@ -63,7 +63,7 @@ func (k Keeper) GetAuthority() string { return k.authority } -// GetParams returns the auction module's parameters. +// GetParams returns the builder module's parameters. func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) { store := ctx.KVStore(k.storeKey) @@ -71,7 +71,7 @@ func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) { bz := store.Get(key) if len(bz) == 0 { - return types.Params{}, fmt.Errorf("no params found for the auction module") + return types.Params{}, fmt.Errorf("no params found for the builder module") } params := types.Params{} @@ -82,7 +82,7 @@ func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) { return params, nil } -// SetParams sets the auction module's parameters. +// SetParams sets the builder module's parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error { store := ctx.KVStore(k.storeKey) @@ -106,7 +106,7 @@ func (k Keeper) GetMaxBundleSize(ctx sdk.Context) (uint32, error) { return params.MaxBundleSize, nil } -// GetEscrowAccount returns the auction module's escrow account. +// GetEscrowAccount returns the builder module's escrow account. func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) { params, err := k.GetParams(ctx) if err != nil { @@ -121,7 +121,7 @@ func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) { return account, nil } -// GetReserveFee returns the reserve fee of the auction module. +// GetReserveFee returns the reserve fee of the builder module. func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coins, error) { params, err := k.GetParams(ctx) if err != nil { @@ -131,7 +131,7 @@ func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coins, error) { return params.ReserveFee, nil } -// GetMinBuyInFee returns the fee that the bidder must pay to enter the auction. +// GetMinBuyInFee returns the fee that the bidder must pay to enter the builder. func (k Keeper) GetMinBuyInFee(ctx sdk.Context) (sdk.Coins, error) { params, err := k.GetParams(ctx) if err != nil { @@ -141,7 +141,7 @@ func (k Keeper) GetMinBuyInFee(ctx sdk.Context) (sdk.Coins, error) { return params.MinBuyInFee, nil } -// GetMinBidIncrement returns the minimum bid increment for the auction. +// GetMinBidIncrement returns the minimum bid increment for the builder. func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coins, error) { params, err := k.GetParams(ctx) if err != nil { @@ -151,7 +151,7 @@ func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coins, error) { return params.MinBidIncrement, nil } -// GetProposerFee returns the proposer fee for the auction module. +// GetProposerFee returns the proposer fee for the builder module. func (k Keeper) GetProposerFee(ctx sdk.Context) (sdk.Dec, error) { params, err := k.GetParams(ctx) if err != nil { diff --git a/x/auction/keeper/keeper_test.go b/x/builder/keeper/keeper_test.go similarity index 86% rename from x/auction/keeper/keeper_test.go rename to x/builder/keeper/keeper_test.go index 26b294b..3c168fb 100644 --- a/x/auction/keeper/keeper_test.go +++ b/x/builder/keeper/keeper_test.go @@ -9,8 +9,8 @@ import ( "github.com/golang/mock/gomock" "github.com/skip-mev/pob/mempool" testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/auction/keeper" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/keeper" + "github.com/skip-mev/pob/x/builder/types" "github.com/stretchr/testify/suite" ) @@ -18,7 +18,7 @@ import ( type KeeperTestSuite struct { suite.Suite - auctionKeeper keeper.Keeper + builderKeeper keeper.Keeper bankKeeper *testutils.MockBankKeeper accountKeeper *testutils.MockAccountKeeper distrKeeper *testutils.MockDistributionKeeper @@ -51,7 +51,7 @@ func (suite *KeeperTestSuite) SetupTest() { suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl) suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl) suite.authorityAccount = sdk.AccAddress([]byte("authority")) - suite.auctionKeeper = keeper.NewKeeper( + suite.builderKeeper = keeper.NewKeeper( suite.encCfg.Codec, suite.key, suite.accountKeeper, @@ -61,9 +61,9 @@ func (suite *KeeperTestSuite) SetupTest() { suite.authorityAccount.String(), ) - err := suite.auctionKeeper.SetParams(suite.ctx, types.DefaultParams()) + err := suite.builderKeeper.SetParams(suite.ctx, types.DefaultParams()) suite.Require().NoError(err) suite.mempool = mempool.NewAuctionMempool(suite.encCfg.TxConfig.TxDecoder(), 0) - suite.msgServer = keeper.NewMsgServerImpl(suite.auctionKeeper) + suite.msgServer = keeper.NewMsgServerImpl(suite.builderKeeper) } diff --git a/x/auction/keeper/msg_server.go b/x/builder/keeper/msg_server.go similarity index 94% rename from x/auction/keeper/msg_server.go rename to x/builder/keeper/msg_server.go index ac8b9da..f07d6f2 100644 --- a/x/auction/keeper/msg_server.go +++ b/x/builder/keeper/msg_server.go @@ -5,17 +5,17 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) var _ types.MsgServer = MsgServer{} -// MsgServer is the wrapper for the auction module's msg service. +// MsgServer is the wrapper for the builder module's msg service. type MsgServer struct { Keeper } -// NewMsgServerImpl returns an implementation of the auction MsgServer interface. +// NewMsgServerImpl returns an implementation of the builder MsgServer interface. func NewMsgServerImpl(keeper Keeper) *MsgServer { return &MsgServer{Keeper: keeper} } diff --git a/x/auction/keeper/msg_server_test.go b/x/builder/keeper/msg_server_test.go similarity index 93% rename from x/auction/keeper/msg_server_test.go rename to x/builder/keeper/msg_server_test.go index 9257926..00625df 100644 --- a/x/auction/keeper/msg_server_test.go +++ b/x/builder/keeper/msg_server_test.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) func (suite *KeeperTestSuite) TestMsgAuctionBid() { @@ -46,7 +46,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() { malleate: func() { params := types.DefaultParams() params.MaxBundleSize = 2 - suite.auctionKeeper.SetParams(suite.ctx, params) + suite.builderKeeper.SetParams(suite.ctx, params) }, expectErr: true, }, @@ -61,7 +61,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() { params := types.DefaultParams() params.ProposerFee = sdk.ZeroDec() params.EscrowAccountAddress = escrow.Address.String() - suite.auctionKeeper.SetParams(suite.ctx, params) + suite.builderKeeper.SetParams(suite.ctx, params) suite.bankKeeper.EXPECT(). SendCoins( @@ -86,7 +86,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() { params := types.DefaultParams() params.ProposerFee = sdk.MustNewDecFromStr("0.30") params.EscrowAccountAddress = escrow.Address.String() - suite.auctionKeeper.SetParams(suite.ctx, params) + suite.builderKeeper.SetParams(suite.ctx, params) suite.distrKeeper.EXPECT(). GetPreviousProposerConsAddr(suite.ctx). diff --git a/x/auction/module.go b/x/builder/module.go similarity index 83% rename from x/auction/module.go rename to x/builder/module.go index 791ee11..09c5c13 100644 --- a/x/auction/module.go +++ b/x/builder/module.go @@ -1,4 +1,4 @@ -package auction +package builder import ( "context" @@ -13,8 +13,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/skip-mev/pob/x/auction/keeper" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/keeper" + "github.com/skip-mev/pob/x/builder/types" "github.com/spf13/cobra" ) @@ -23,35 +23,35 @@ var ( _ module.AppModuleBasic = AppModuleBasic{} ) -// ConsensusVersion defines the current x/auction module consensus version. +// ConsensusVersion defines the current x/builder module consensus version. const ConsensusVersion = 1 -// AppModuleBasic defines the basic application module used by the auction module. +// AppModuleBasic defines the basic application module used by the builder module. type AppModuleBasic struct { cdc codec.Codec } -// Name returns the auction module's name. +// Name returns the builder module's name. func (AppModuleBasic) Name() string { return types.ModuleName } -// RegisterLegacyAminoCodec registers the auction module's types on the given LegacyAmino codec. +// RegisterLegacyAminoCodec registers the builder module's types on the given LegacyAmino codec. func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterLegacyAminoCodec(cdc) } -// RegisterInterfaces registers the auction module's interface types. +// RegisterInterfaces registers the builder module's interface types. func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { types.RegisterInterfaces(registry) } -// DefaultGenesis returns default genesis state as raw bytes for the auction module. +// DefaultGenesis returns default genesis state as raw bytes for the builder module. func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { return cdc.MustMarshalJSON(types.DefaultGenesisState()) } -// ValidateGenesis performs genesis state validation for the auction module. +// ValidateGenesis performs genesis state validation for the builder module. func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { @@ -61,17 +61,17 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingCo return genState.Validate() } -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the auction module. +// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the builder module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { panic(err) } } -// GetTxCmd returns the root tx command for the auction module. +// GetTxCmd returns the root tx command for the builder module. func (AppModuleBasic) GetTxCmd() *cobra.Command { return nil } -// GetQueryCmd returns no root query command for the auction module. +// GetQueryCmd returns no root query command for the builder module. func (AppModuleBasic) GetQueryCmd() *cobra.Command { return nil } type AppModule struct { @@ -91,7 +91,7 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule { // ConsensusVersion implements AppModule/ConsensusVersion. func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion } -// RegisterServices registers a the gRPC Query and Msg services for the x/auction +// RegisterServices registers a the gRPC Query and Msg services for the x/builder // module. func (am AppModule) RegisterServices(cfc module.Configurator) { types.RegisterMsgServer(cfc.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) @@ -105,7 +105,7 @@ func (a AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router) {} // logic (most often the chain will be halted). func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} -// InitGenesis performs the module's genesis initialization for the auction +// InitGenesis performs the module's genesis initialization for the builder // module. It returns no validator updates. func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate { var genState types.GenesisState @@ -115,7 +115,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.Ra return []abci.ValidatorUpdate{} } -// ExportGenesis returns the auction module's exported genesis state as raw +// ExportGenesis returns the builder module's exported genesis state as raw // JSON bytes. func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { genState := am.keeper.ExportGenesis(ctx) diff --git a/x/auction/types/codec.go b/x/builder/types/codec.go similarity index 80% rename from x/auction/types/codec.go rename to x/builder/types/codec.go index 871831c..fe9f750 100644 --- a/x/auction/types/codec.go +++ b/x/builder/types/codec.go @@ -30,17 +30,17 @@ func init() { RegisterLegacyAminoCodec(groupcodec.Amino) } -// RegisterLegacyAminoCodec registers the necessary x/auction interfaces and +// RegisterLegacyAminoCodec registers the necessary x/builder interfaces and // concrete types on the provided LegacyAmino codec. These types are used for // Amino JSON serialization. func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - legacy.RegisterAminoMsg(cdc, &MsgAuctionBid{}, "skip-mev/pob/MsgAuctionBid") - legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "skip-mev/pob/MsgUpdateParams") + legacy.RegisterAminoMsg(cdc, &MsgAuctionBid{}, "pob/x/builder/MsgAuctionBid") + legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "pob/x/builder/MsgUpdateParams") - cdc.RegisterConcrete(Params{}, "skip-mev/pob/Params", nil) + cdc.RegisterConcrete(Params{}, "pob/builder/Params", nil) } -// RegisterInterfaces registers the x/auction interfaces types with the +// RegisterInterfaces registers the x/builder interfaces types with the // interface registry. func RegisterInterfaces(registry types.InterfaceRegistry) { registry.RegisterImplementations( diff --git a/x/auction/types/expected_keepers.go b/x/builder/types/expected_keepers.go similarity index 100% rename from x/auction/types/expected_keepers.go rename to x/builder/types/expected_keepers.go diff --git a/x/auction/types/genesis.go b/x/builder/types/genesis.go similarity index 86% rename from x/auction/types/genesis.go rename to x/builder/types/genesis.go index 274da8c..56f3f24 100644 --- a/x/auction/types/genesis.go +++ b/x/builder/types/genesis.go @@ -14,7 +14,7 @@ func DefaultGenesisState() *GenesisState { } } -// Validate performs basic validation of the auction module genesis state. +// Validate performs basic validation of the builder module genesis state. func (gs GenesisState) Validate() error { return gs.Params.Validate() } diff --git a/x/auction/types/genesis.pb.go b/x/builder/types/genesis.pb.go similarity index 83% rename from x/auction/types/genesis.pb.go rename to x/builder/types/genesis.pb.go index ac92b56..2243b8d 100644 --- a/x/auction/types/genesis.pb.go +++ b/x/builder/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pob/auction/v1/genesis.proto +// source: pob/builder/v1/genesis.proto package types @@ -26,7 +26,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// GenesisState defines the genesis state of the x/auction module. +// GenesisState defines the genesis state of the x/builder module. type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` } @@ -35,7 +35,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_9ed8651e43f855a1, []int{0} + return fileDescriptor_287f1bdff5ccfc33, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,7 +71,7 @@ func (m *GenesisState) GetParams() Params { return Params{} } -// Params defines the parameters of the x/auction module. +// Params defines the parameters of the x/builder module. type Params struct { // max_bundle_size is the maximum number of transactions that can be bundled // in a single bundle. @@ -99,7 +99,7 @@ func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_9ed8651e43f855a1, []int{1} + return fileDescriptor_287f1bdff5ccfc33, []int{1} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -171,47 +171,47 @@ func (m *Params) GetFrontRunningProtection() bool { } func init() { - proto.RegisterType((*GenesisState)(nil), "skipmev.pob.auction.v1.GenesisState") - proto.RegisterType((*Params)(nil), "skipmev.pob.auction.v1.Params") + proto.RegisterType((*GenesisState)(nil), "skipmev.pob.builder.v1.GenesisState") + proto.RegisterType((*Params)(nil), "skipmev.pob.builder.v1.Params") } -func init() { proto.RegisterFile("pob/auction/v1/genesis.proto", fileDescriptor_9ed8651e43f855a1) } +func init() { proto.RegisterFile("pob/builder/v1/genesis.proto", fileDescriptor_287f1bdff5ccfc33) } -var fileDescriptor_9ed8651e43f855a1 = []byte{ - // 517 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x63, 0x1a, 0x02, 0x5c, 0x5a, 0xaa, 0x5a, 0x55, 0x64, 0x0a, 0x72, 0xa2, 0x0e, 0x25, - 0xaa, 0xd4, 0x3b, 0xa5, 0x80, 0x84, 0x10, 0x4b, 0x02, 0x2a, 0xaa, 0xc4, 0x50, 0xdc, 0x8d, 0xc5, - 0x3a, 0xdb, 0xaf, 0xe1, 0x54, 0xee, 0xce, 0xdc, 0xd9, 0x26, 0xa9, 0xf8, 0x04, 0x4c, 0x7c, 0x0c, - 0xc4, 0xd4, 0x8f, 0xd1, 0xb1, 0x23, 0x62, 0x28, 0x28, 0x19, 0xfa, 0x29, 0x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, 0x17, 0x31, 0x76, 0x00, 0x9e, 0xf5, - 0x3e, 0x9f, 0x1f, 0x6f, 0xde, 0xbf, 0xe2, 0x9b, 0x5c, 0x2e, 0x4e, 0x3d, 0x8d, 0xc3, 0x93, 0x59, - 0xe8, 0x9d, 0xce, 0x42, 0xef, 0xd7, 0x2c, 0xf4, 0xbe, 0xcc, 0xc3, 0xc6, 0xe9, 0x3c, 0x6c, 0x7c, - 0x9f, 0x87, 0x8d, 0xb7, 0x0f, 0xaf, 0x00, 0xcd, 0x44, 0x6f, 0x71, 0xa8, 0x88, 0x59, 0xbd, 0xbf, - 0x31, 0x2c, 0x35, 0x69, 0xd9, 0xbd, 0x78, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x32, 0x3f, 0xb6, - 0x9a, 0x98, 0x03, 0x00, 0x00, +var fileDescriptor_287f1bdff5ccfc33 = []byte{ + // 521 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xbf, 0x6e, 0x13, 0x4f, + 0x10, 0xc7, 0x7d, 0xbf, 0xf8, 0x67, 0x60, 0x9d, 0x10, 0xe5, 0x14, 0x59, 0x47, 0x40, 0x67, 0x2b, + 0x45, 0xb0, 0x22, 0x65, 0x57, 0x0e, 0x20, 0x21, 0x44, 0x63, 0x83, 0x82, 0x22, 0x51, 0x84, 0x4b, + 0x47, 0x73, 0xba, 0x3f, 0x13, 0xb3, 0x4a, 0x76, 0xf7, 0xd8, 0xdd, 0x3b, 0xec, 0x88, 0x27, 0xa0, + 0xe2, 0x31, 0x10, 0x55, 0x1e, 0x23, 0x65, 0x4a, 0x44, 0x11, 0x90, 0x5d, 0xe4, 0x29, 0x90, 0xd0, + 0xee, 0x5e, 0x42, 0x0a, 0x0a, 0x9a, 0x34, 0x77, 0xa7, 0xfd, 0x7e, 0x77, 0x3e, 0x33, 0x73, 0x33, + 0xe8, 0x41, 0x21, 0x52,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 0x38, 0x3c, 0x9d, 0x85, 0xde, 0xd9, 0x2c, 0xf4, 0x7e, 0xce, 0x42, 0xef, 0xf3, 0x3c, 0x6c, 0x9c, + 0xcd, 0xc3, 0xc6, 0xb7, 0x79, 0xd8, 0x78, 0xfb, 0xf0, 0x1a, 0xd0, 0x4c, 0xf4, 0x16, 0x83, 0x8a, + 0x98, 0xd5, 0xfb, 0x13, 0xc3, 0x52, 0xd3, 0x96, 0xdd, 0x8b, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xe5, 0xc0, 0xeb, 0xb3, 0x98, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/builder/types/keys.go b/x/builder/types/keys.go new file mode 100644 index 0000000..3bc7f21 --- /dev/null +++ b/x/builder/types/keys.go @@ -0,0 +1,22 @@ +package types + +const ( + // ModuleName is the name of the builder module + ModuleName = "builder" + + // StoreKey is the default store key for the builder module + StoreKey = ModuleName + + // RouterKey is the message route for the builder module + RouterKey = ModuleName + + // QuerierRoute is the querier route for the builder module + QuerierRoute = ModuleName +) + +const ( + prefixParams = iota + 1 +) + +// KeyParams is the store key for the builder module's parameters. +var KeyParams = []byte{prefixParams} diff --git a/x/auction/types/msgs.go b/x/builder/types/msgs.go similarity index 100% rename from x/auction/types/msgs.go rename to x/builder/types/msgs.go diff --git a/x/auction/types/msgs_test.go b/x/builder/types/msgs_test.go similarity index 98% rename from x/auction/types/msgs_test.go rename to x/builder/types/msgs_test.go index 3c1dd2e..a2f9ca4 100644 --- a/x/auction/types/msgs_test.go +++ b/x/builder/types/msgs_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/x/auction/types" + "github.com/skip-mev/pob/x/builder/types" ) // TestMsgAuctionBid tests the ValidateBasic method of MsgAuctionBid diff --git a/x/auction/types/params.go b/x/builder/types/params.go similarity index 97% rename from x/auction/types/params.go rename to x/builder/types/params.go index bada567..4a7deab 100644 --- a/x/auction/types/params.go +++ b/x/builder/types/params.go @@ -36,7 +36,7 @@ func NewParams( } } -// DefaultParams returns the default x/auction parameters. +// DefaultParams returns the default x/builder parameters. func DefaultParams() Params { return NewParams( DefaultMaxBundleSize, diff --git a/x/auction/types/query.pb.go b/x/builder/types/query.pb.go similarity index 84% rename from x/auction/types/query.pb.go rename to x/builder/types/query.pb.go index ee5ecee..843f22c 100644 --- a/x/auction/types/query.pb.go +++ b/x/builder/types/query.pb.go @@ -1,12 +1,11 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pob/auction/v1/query.proto +// source: pob/builder/v1/query.proto package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" @@ -39,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_358d843f609c8630, []int{0} + return fileDescriptor_fe4920efc6923232, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_358d843f609c8630, []int{1} + return fileDescriptor_fe4920efc6923232, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -115,34 +114,34 @@ func (m *QueryParamsResponse) GetParams() Params { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "skipmev.pob.auction.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "skipmev.pob.auction.v1.QueryParamsResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "skipmev.pob.builder.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "skipmev.pob.builder.v1.QueryParamsResponse") } -func init() { proto.RegisterFile("pob/auction/v1/query.proto", fileDescriptor_358d843f609c8630) } +func init() { proto.RegisterFile("pob/builder/v1/query.proto", fileDescriptor_fe4920efc6923232) } -var fileDescriptor_358d843f609c8630 = []byte{ - // 315 bytes of a gzipped FileDescriptorProto +var fileDescriptor_fe4920efc6923232 = []byte{ + // 307 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0xc8, 0x4f, 0xd2, - 0x4f, 0x2c, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, + 0x4f, 0x2a, 0xcd, 0xcc, 0x49, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x2b, 0xce, 0xce, 0x2c, 0xc8, 0x4d, 0x2d, 0xd3, 0x2b, 0xc8, 0x4f, 0xd2, 0x83, 0xaa, 0xd1, 0x2b, 0x33, 0x94, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd1, 0x07, 0xb1, 0x20, 0xaa, 0xa5, 0x64, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x13, - 0x0b, 0x32, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x41, 0xea, 0x8b, 0xa1, 0xb2, 0x92, 0xc9, - 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xf1, 0x10, 0x6d, 0x10, 0x0e, 0x54, 0x4a, 0x1a, 0xc2, 0x83, 0x58, - 0x8d, 0xe6, 0x06, 0x29, 0x19, 0x34, 0xf7, 0xa5, 0xa7, 0xe6, 0xa5, 0x16, 0x67, 0x42, 0xb5, 0x2a, - 0x89, 0x70, 0x09, 0x05, 0x82, 0x14, 0x07, 0x24, 0x16, 0x25, 0xe6, 0x16, 0x07, 0xa5, 0x16, 0x96, - 0xa6, 0x16, 0x97, 0x28, 0x05, 0x73, 0x09, 0xa3, 0x88, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x0a, - 0xd9, 0x70, 0xb1, 0x15, 0x80, 0x45, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0xe4, 0xf4, 0xb0, - 0xfb, 0x4f, 0x0f, 0xa2, 0xcf, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x1e, 0xa3, 0x09, - 0x8c, 0x5c, 0xac, 0x60, 0x53, 0x85, 0xda, 0x18, 0xb9, 0xd8, 0x20, 0x4a, 0x84, 0xb4, 0x70, 0x19, - 0x81, 0xe9, 0x2a, 0x29, 0x6d, 0xa2, 0xd4, 0x42, 0xdc, 0xaa, 0xa4, 0xdc, 0xf1, 0x7c, 0x83, 0x16, - 0x63, 0xd3, 0xe5, 0x27, 0x93, 0x99, 0x24, 0x84, 0xc4, 0xf4, 0xd1, 0x02, 0x01, 0xe2, 0x24, 0x27, - 0xc7, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, - 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x52, 0x4f, 0xcf, 0x2c, 0xc9, - 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0xd9, 0xaa, 0x9b, 0x9b, 0x5a, 0x06, 0x36, 0xa4, - 0x02, 0x6e, 0x4c, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x1c, 0x8d, 0x01, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x01, 0x0c, 0x7f, 0xf9, 0x07, 0x02, 0x00, 0x00, + 0x0b, 0x32, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x8a, 0xa1, 0xb2, + 0xd2, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0x10, 0xf3, 0xd1, 0x2c, 0x92, 0x92, 0x41, 0x73, 0x44, + 0x7a, 0x6a, 0x5e, 0x6a, 0x71, 0x26, 0x54, 0xab, 0x92, 0x08, 0x97, 0x50, 0x20, 0x48, 0x71, 0x40, + 0x62, 0x51, 0x62, 0x6e, 0x71, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, 0x89, 0x52, 0x30, 0x97, 0x30, + 0x8a, 0x68, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x0d, 0x17, 0x5b, 0x01, 0x58, 0x44, 0x82, + 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x4e, 0x0f, 0xbb, 0x27, 0xf4, 0x20, 0xfa, 0x9c, 0x58, 0x4e, + 0xdc, 0x93, 0x67, 0x08, 0x82, 0xea, 0x31, 0x9a, 0xc0, 0xc8, 0xc5, 0x0a, 0x36, 0x55, 0xa8, 0x8d, + 0x91, 0x8b, 0x0d, 0xa2, 0x44, 0x48, 0x0b, 0x97, 0x11, 0x98, 0xae, 0x92, 0xd2, 0x26, 0x4a, 0x2d, + 0xc4, 0xad, 0x4a, 0xca, 0x1d, 0xcf, 0x37, 0x68, 0x31, 0x36, 0x5d, 0x7e, 0x32, 0x99, 0x49, 0x42, + 0x48, 0x4c, 0x1f, 0x2d, 0x10, 0x20, 0x4e, 0x72, 0x72, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, + 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, + 0x63, 0x39, 0x86, 0x28, 0xf5, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, + 0x90, 0xad, 0xba, 0xb9, 0xa9, 0x65, 0x60, 0x43, 0x2a, 0xe0, 0xc6, 0x94, 0x54, 0x16, 0xa4, 0x16, + 0x27, 0xb1, 0x81, 0xc3, 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x01, 0xac, 0x49, 0x92, 0xec, + 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -157,7 +156,7 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { - // Params queries the parameters of the x/auction module. + // Params queries the parameters of the x/builder module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) } @@ -171,7 +170,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/skipmev.pob.auction.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/skipmev.pob.builder.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -180,7 +179,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . // QueryServer is the server API for Query service. type QueryServer interface { - // Params queries the parameters of the x/auction module. + // Params queries the parameters of the x/builder module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) } @@ -206,7 +205,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/skipmev.pob.auction.v1.Query/Params", + FullMethod: "/skipmev.pob.builder.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -215,7 +214,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "skipmev.pob.auction.v1.Query", + ServiceName: "skipmev.pob.builder.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -224,7 +223,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "pob/auction/v1/query.proto", + Metadata: "pob/builder/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/auction/types/query.pb.gw.go b/x/builder/types/query.pb.gw.go similarity index 98% rename from x/auction/types/query.pb.gw.go rename to x/builder/types/query.pb.gw.go index 4d6e32d..667955c 100644 --- a/x/auction/types/query.pb.gw.go +++ b/x/builder/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pob/auction/v1/query.proto +// source: pob/builder/v1/query.proto /* Package types is a reverse proxy. @@ -145,7 +145,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pob", "auction", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pob", "builder", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/auction/types/tx.pb.go b/x/builder/types/tx.pb.go similarity index 84% rename from x/auction/types/tx.pb.go rename to x/builder/types/tx.pb.go index f8a82d1..3b0e34b 100644 --- a/x/auction/types/tx.pb.go +++ b/x/builder/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pob/auction/v1/tx.proto +// source: pob/builder/v1/tx.proto package types @@ -34,7 +34,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// MsgAuctionBid defines a request type for sending bids to the x/auction +// MsgAuctionBid defines a request type for sending bids to the x/builder // module. type MsgAuctionBid struct { // bidder is the address of the account that is submitting a bid to the @@ -52,7 +52,7 @@ func (m *MsgAuctionBid) Reset() { *m = MsgAuctionBid{} } func (m *MsgAuctionBid) String() string { return proto.CompactTextString(m) } func (*MsgAuctionBid) ProtoMessage() {} func (*MsgAuctionBid) Descriptor() ([]byte, []int) { - return fileDescriptor_450b077ed2625255, []int{0} + return fileDescriptor_5cab4e3a4b082d0a, []int{0} } func (m *MsgAuctionBid) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -110,7 +110,7 @@ func (m *MsgAuctionBidResponse) Reset() { *m = MsgAuctionBidResponse{} } func (m *MsgAuctionBidResponse) String() string { return proto.CompactTextString(m) } func (*MsgAuctionBidResponse) ProtoMessage() {} func (*MsgAuctionBidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_450b077ed2625255, []int{1} + return fileDescriptor_5cab4e3a4b082d0a, []int{1} } func (m *MsgAuctionBidResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -139,13 +139,13 @@ func (m *MsgAuctionBidResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAuctionBidResponse proto.InternalMessageInfo -// MsgUpdateParams defines a request type for updating the x/auction module +// MsgUpdateParams defines a request type for updating the x/builder module // parameters. type MsgUpdateParams struct { // authority is the address of the account that is authorized to update the - // x/auction module parameters. + // x/builder module parameters. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params is the new parameters for the x/auction module. + // params is the new parameters for the x/builder module. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } @@ -153,7 +153,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_450b077ed2625255, []int{2} + return fileDescriptor_5cab4e3a4b082d0a, []int{2} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,7 +204,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_450b077ed2625255, []int{3} + return fileDescriptor_5cab4e3a4b082d0a, []int{3} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,51 +234,51 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgAuctionBid)(nil), "skipmev.pob.auction.v1.MsgAuctionBid") - proto.RegisterType((*MsgAuctionBidResponse)(nil), "skipmev.pob.auction.v1.MsgAuctionBidResponse") - proto.RegisterType((*MsgUpdateParams)(nil), "skipmev.pob.auction.v1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "skipmev.pob.auction.v1.MsgUpdateParamsResponse") + proto.RegisterType((*MsgAuctionBid)(nil), "skipmev.pob.builder.v1.MsgAuctionBid") + proto.RegisterType((*MsgAuctionBidResponse)(nil), "skipmev.pob.builder.v1.MsgAuctionBidResponse") + proto.RegisterType((*MsgUpdateParams)(nil), "skipmev.pob.builder.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "skipmev.pob.builder.v1.MsgUpdateParamsResponse") } -func init() { proto.RegisterFile("pob/auction/v1/tx.proto", fileDescriptor_450b077ed2625255) } +func init() { proto.RegisterFile("pob/builder/v1/tx.proto", fileDescriptor_5cab4e3a4b082d0a) } -var fileDescriptor_450b077ed2625255 = []byte{ - // 554 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xbf, 0x6f, 0xd3, 0x40, - 0x14, 0x8e, 0x9b, 0x12, 0xa9, 0xd7, 0x20, 0x84, 0x69, 0xc9, 0x8f, 0x82, 0x13, 0x59, 0x42, 0x8d, - 0x22, 0xc5, 0x47, 0xc2, 0x8f, 0xa1, 0x62, 0x49, 0x98, 0x23, 0xa1, 0x20, 0x16, 0x16, 0x74, 0x8e, - 0x4f, 0x97, 0x53, 0xb1, 0xcf, 0xf2, 0xbb, 0x44, 0xed, 0x04, 0xea, 0xc8, 0x84, 0xc4, 0x3f, 0xc0, - 0x88, 0x98, 0x32, 0xb0, 0xb2, 0x77, 0xac, 0x60, 0x61, 0x02, 0x94, 0x20, 0x85, 0xff, 0x00, 0x89, - 0x09, 0x9d, 0x7d, 0x6e, 0xe3, 0xf0, 0xab, 0x4b, 0x62, 0xbf, 0xfb, 0xde, 0xf7, 0xbe, 0xef, 0xbb, - 0x67, 0x54, 0x0a, 0x85, 0x8b, 0xc9, 0x78, 0x28, 0xb9, 0x08, 0xf0, 0xa4, 0x8d, 0xe5, 0x81, 0x13, - 0x46, 0x42, 0x0a, 0xf3, 0x2a, 0xec, 0xf3, 0xd0, 0xa7, 0x13, 0x27, 0x14, 0xae, 0xa3, 0x01, 0xce, - 0xa4, 0x5d, 0xdd, 0x62, 0x82, 0x89, 0x18, 0x82, 0xd5, 0x53, 0x82, 0xae, 0x5e, 0x63, 0x42, 0xb0, - 0xa7, 0x14, 0x93, 0x90, 0x63, 0x12, 0x04, 0x42, 0x12, 0x85, 0x07, 0x7d, 0x6a, 0x0d, 0x05, 0xf8, - 0x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 0xee, 0x96, - 0x4f, 0x27, 0x38, 0x9b, 0x70, 0xbc, 0x95, 0x6e, 0x21, 0xfe, 0x68, 0x6e, 0xfd, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0x7a, 0x09, 0xc0, 0x53, 0x20, 0x04, 0x00, 0x00, +var fileDescriptor_5cab4e3a4b082d0a = []byte{ + // 559 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xbd, 0x6f, 0xd3, 0x4e, + 0x18, 0x8e, 0x9b, 0xfe, 0x22, 0xf5, 0x9a, 0x9f, 0x10, 0xa6, 0x25, 0x1f, 0x05, 0x27, 0xb2, 0x84, + 0x1a, 0x45, 0x8a, 0x8f, 0x84, 0x8f, 0xa1, 0x62, 0x49, 0x98, 0x23, 0xa1, 0x20, 0x16, 0x16, 0x74, + 0x8e, 0x4f, 0x97, 0x53, 0x6b, 0x9f, 0xe5, 0xf7, 0x12, 0xb5, 0x13, 0xa8, 0x23, 0x13, 0x12, 0xff, + 0x00, 0x23, 0x62, 0xca, 0xc0, 0xca, 0xde, 0xb1, 0x82, 0x85, 0x09, 0x50, 0x82, 0x14, 0xfe, 0x03, + 0x24, 0x26, 0x74, 0xf6, 0xb9, 0x8d, 0xc3, 0x57, 0x97, 0xc4, 0x7e, 0xdf, 0xe7, 0x7d, 0xee, 0x79, + 0x9e, 0x7b, 0x8d, 0x4a, 0xa1, 0x70, 0xb1, 0x3b, 0xe6, 0x07, 0x1e, 0x8d, 0xf0, 0xa4, 0x8d, 0xe5, + 0xa1, 0x13, 0x46, 0x42, 0x0a, 0xf3, 0x2a, 0xec, 0xf3, 0xd0, 0xa7, 0x13, 0x27, 0x14, 0xae, 0xa3, + 0x01, 0xce, 0xa4, 0x5d, 0xdd, 0x62, 0x82, 0x89, 0x18, 0x82, 0xd5, 0x53, 0x82, 0xae, 0x5e, 0x63, + 0x42, 0xb0, 0x03, 0x8a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x32, 0xbe, + 0xcc, 0x2c, 0xe3, 0xc5, 0xdc, 0xca, 0x9d, 0xce, 0xad, 0xdc, 0xc7, 0xb9, 0x95, 0x7b, 0xbc, 0xbb, + 0xb4, 0x90, 0x8a, 0xbb, 0xe5, 0xd3, 0x09, 0xce, 0x26, 0x1c, 0x6f, 0xa5, 0x5b, 0x88, 0x3f, 0x9a, + 0x5b, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x06, 0x90, 0xd0, 0x20, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -293,9 +293,9 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { - // AuctionBid defines a method for sending bids to the x/auction module. + // AuctionBid defines a method for sending bids to the x/builder module. AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error) - // UpdateParams defines a governance operation for updating the x/auction + // UpdateParams defines a governance operation for updating the x/builder // module parameters. The authority is hard-coded to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } @@ -310,7 +310,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error) { out := new(MsgAuctionBidResponse) - err := c.cc.Invoke(ctx, "/skipmev.pob.auction.v1.Msg/AuctionBid", in, out, opts...) + err := c.cc.Invoke(ctx, "/skipmev.pob.builder.v1.Msg/AuctionBid", in, out, opts...) if err != nil { return nil, err } @@ -319,7 +319,7 @@ func (c *msgClient) AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...g func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/skipmev.pob.auction.v1.Msg/UpdateParams", in, out, opts...) + err := c.cc.Invoke(ctx, "/skipmev.pob.builder.v1.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -328,9 +328,9 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts // MsgServer is the server API for Msg service. type MsgServer interface { - // AuctionBid defines a method for sending bids to the x/auction module. + // AuctionBid defines a method for sending bids to the x/builder module. AuctionBid(context.Context, *MsgAuctionBid) (*MsgAuctionBidResponse, error) - // UpdateParams defines a governance operation for updating the x/auction + // UpdateParams defines a governance operation for updating the x/builder // module parameters. The authority is hard-coded to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } @@ -360,7 +360,7 @@ func _Msg_AuctionBid_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/skipmev.pob.auction.v1.Msg/AuctionBid", + FullMethod: "/skipmev.pob.builder.v1.Msg/AuctionBid", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AuctionBid(ctx, req.(*MsgAuctionBid)) @@ -378,7 +378,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/skipmev.pob.auction.v1.Msg/UpdateParams", + FullMethod: "/skipmev.pob.builder.v1.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -387,7 +387,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "skipmev.pob.auction.v1.Msg", + ServiceName: "skipmev.pob.builder.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -400,7 +400,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "pob/auction/v1/tx.proto", + Metadata: "pob/builder/v1/tx.proto", } func (m *MsgAuctionBid) Marshal() (dAtA []byte, err error) { diff --git a/x/auction/types/tx.pb.gw.go b/x/builder/types/tx.pb.gw.go similarity index 98% rename from x/auction/types/tx.pb.gw.go rename to x/builder/types/tx.pb.gw.go index b7c9620..bb907aa 100644 --- a/x/auction/types/tx.pb.gw.go +++ b/x/builder/types/tx.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pob/auction/v1/tx.proto +// source: pob/builder/v1/tx.proto /* Package types is a reverse proxy. @@ -163,7 +163,7 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } var ( - pattern_Msg_AuctionBid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pob", "auction", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Msg_AuctionBid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pob", "builder", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false))) ) var (