feat(docs): rename x/builder -> x/auction (#55)

* rename x/builder -> x/auction

* update proto / etc.

* integratino fix

---------

Co-authored-by: David Terpay <david.terpay@gmail.com>
This commit is contained in:
Nikhil Vasan
2023-09-12 14:37:25 -04:00
committed by GitHub
co-authored by David Terpay
parent 21b9b6f882
commit 3c6f319ff1
57 changed files with 845 additions and 846 deletions
@@ -1,13 +1,13 @@
syntax = "proto3";
package sdk.builder.module.v1;
package sdk.auction.module.v1;
import "cosmos/app/v1alpha1/module.proto";
// Module is the config object of the builder module.
// Module is the config object of the auction module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import : "github.com/skip-mev/block-sdk/x/builder"
go_import : "github.com/skip-mev/block-sdk/x/auction"
};
// Authority defines the custom module authority. If not set, defaults to the
@@ -1,19 +1,19 @@
syntax = "proto3";
package sdk.builder.v1;
package sdk.auction.v1;
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
option go_package = "github.com/skip-mev/block-sdk/x/builder/types";
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
// GenesisState defines the genesis state of the x/builder module.
// GenesisState defines the genesis state of the x/auction module.
message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; }
// Params defines the parameters of the x/builder module.
// Params defines the parameters of the x/auction module.
message Params {
option (amino.name) = "block-sdk/x/builder/Params";
option (amino.name) = "block-sdk/x/auction/Params";
// max_bundle_size is the maximum number of transactions that can be bundled
// in a single bundle.
@@ -1,19 +1,19 @@
syntax = "proto3";
package sdk.builder.v1;
package sdk.auction.v1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/query/v1/query.proto";
import "sdk/builder/v1/genesis.proto";
import "sdk/auction/v1/genesis.proto";
option go_package = "github.com/skip-mev/block-sdk/x/builder/types";
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
// Query defines the x/builder querier service.
// Query defines the x/auction querier service.
service Query {
// Params queries the parameters of the x/builder module.
// Params queries the parameters of the x/auction module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/block-sdk/builder/v1/params";
option (google.api.http).get = "/block-sdk/auction/v1/params";
}
}
@@ -1,35 +1,35 @@
syntax = "proto3";
package sdk.builder.v1;
package sdk.auction.v1;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/v1beta1/coin.proto";
import "sdk/builder/v1/genesis.proto";
import "sdk/auction/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/block-sdk/x/builder/types";
option go_package = "github.com/skip-mev/block-sdk/x/auction/types";
// Msg defines the x/builder Msg service.
// Msg defines the x/auction Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// AuctionBid defines a method for sending bids to the x/builder module.
// AuctionBid defines a method for sending bids to the x/auction module.
rpc AuctionBid(MsgAuctionBid) returns (MsgAuctionBidResponse) {
option (google.api.http).post = "/block-sdk/builder/v1/bid";
option (google.api.http).post = "/block-sdk/auction/v1/bid";
};
// UpdateParams defines a governance operation for updating the x/builder
// UpdateParams defines a governance operation for updating the x/auction
// 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/builder
// MsgAuctionBid defines a request type for sending bids to the x/auction
// module.
message MsgAuctionBid {
option (cosmos.msg.v1.signer) = "bidder";
option (amino.name) = "block-sdk/x/builder/MsgAuctionBid";
option (amino.name) = "block-sdk/x/auction/MsgAuctionBid";
option (gogoproto.equal) = false;
@@ -48,18 +48,18 @@ message MsgAuctionBid {
// MsgAuctionBidResponse defines the Msg/AuctionBid response type.
message MsgAuctionBidResponse {}
// MsgUpdateParams defines a request type for updating the x/builder module
// MsgUpdateParams defines a request type for updating the x/auction module
// parameters.
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "block-sdk/x/builder/MsgUpdateParams";
option (amino.name) = "block-sdk/x/auction/MsgUpdateParams";
option (gogoproto.equal) = false;
// authority is the address of the account that is authorized to update the
// x/builder module parameters.
// x/auction module parameters.
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// params is the new parameters for the x/builder module.
// params is the new parameters for the x/auction module.
Params params = 2 [ (gogoproto.nullable) = false ];
}