[ENG-653]: Rename to builder module (#41)

This commit is contained in:
David Terpay
2023-04-03 18:53:38 +00:00
committed by GitHub
parent 36c7509d57
commit 61fcd5efdc
33 changed files with 311 additions and 313 deletions
@@ -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.
@@ -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";
}
}
@@ -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 ];
}