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:
co-authored by
David Terpay
parent
21b9b6f882
commit
3c6f319ff1
@@ -8,11 +8,11 @@ import (
|
||||
"cosmossdk.io/errors"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ sdk.AnteDecorator = BuilderDecorator{}
|
||||
var _ sdk.AnteDecorator = AuctionDecorator{}
|
||||
|
||||
type (
|
||||
// MEVLane is an interface that defines the methods required to interact with the MEV
|
||||
@@ -27,18 +27,18 @@ type (
|
||||
Contains(tx sdk.Tx) bool
|
||||
}
|
||||
|
||||
// BuilderDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
|
||||
BuilderDecorator struct {
|
||||
builderKeeper keeper.Keeper
|
||||
// AuctionDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
|
||||
AuctionDecorator struct {
|
||||
auctionkeeper keeper.Keeper
|
||||
txEncoder sdk.TxEncoder
|
||||
lane MEVLane
|
||||
mempool Mempool
|
||||
}
|
||||
)
|
||||
|
||||
func NewBuilderDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane, mempool Mempool) BuilderDecorator {
|
||||
return BuilderDecorator{
|
||||
builderKeeper: ak,
|
||||
func NewAuctionDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane, mempool Mempool) AuctionDecorator {
|
||||
return AuctionDecorator{
|
||||
auctionkeeper: ak,
|
||||
txEncoder: txEncoder,
|
||||
lane: lane,
|
||||
mempool: mempool,
|
||||
@@ -47,15 +47,15 @@ func NewBuilderDecorator(ak keeper.Keeper, txEncoder sdk.TxEncoder, lane MEVLane
|
||||
|
||||
// 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 (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||
func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
|
||||
// If comet is re-checking a transaction, we only need to check if the transaction is in the application-side mempool.
|
||||
if ctx.IsReCheckTx() {
|
||||
if !bd.mempool.Contains(tx) {
|
||||
if !ad.mempool.Contains(tx) {
|
||||
return ctx, fmt.Errorf("transaction not found in application-side mempool")
|
||||
}
|
||||
}
|
||||
|
||||
bidInfo, err := bd.lane.GetAuctionBidInfo(tx)
|
||||
bidInfo, err := ad.lane.GetAuctionBidInfo(tx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
@@ -63,7 +63,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
// Validate the auction bid if one exists.
|
||||
if bidInfo != nil {
|
||||
// Auction transactions must have a timeout set to a valid block height.
|
||||
if err := bd.ValidateTimeout(ctx, int64(bidInfo.Timeout)); err != nil {
|
||||
if err := ad.ValidateTimeout(ctx, int64(bidInfo.Timeout)); err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
@@ -73,20 +73,20 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
// poor liveness guarantees.
|
||||
topBid := sdk.Coin{}
|
||||
if ctx.IsCheckTx() || ctx.IsReCheckTx() {
|
||||
if topBidTx := bd.lane.GetTopAuctionTx(ctx); topBidTx != nil {
|
||||
topBidBz, err := bd.txEncoder(topBidTx)
|
||||
if topBidTx := ad.lane.GetTopAuctionTx(ctx); topBidTx != nil {
|
||||
topBidBz, err := ad.txEncoder(topBidTx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
currentTxBz, err := bd.txEncoder(tx)
|
||||
currentTxBz, err := ad.txEncoder(tx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
// Compare the bytes to see if the current transaction is the highest bidding transaction.
|
||||
if !bytes.Equal(topBidBz, currentTxBz) {
|
||||
topBidInfo, err := bd.lane.GetAuctionBidInfo(topBidTx)
|
||||
topBidInfo, err := ad.lane.GetAuctionBidInfo(topBidTx)
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
@@ -96,7 +96,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
}
|
||||
}
|
||||
|
||||
if err := bd.builderKeeper.ValidateBidInfo(ctx, topBid, bidInfo); err != nil {
|
||||
if err := ad.auctionkeeper.ValidateBidInfo(ctx, topBid, bidInfo); err != nil {
|
||||
return ctx, errors.Wrap(err, "failed to validate auction bid")
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,7 @@ func (bd BuilderDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool,
|
||||
|
||||
// ValidateTimeout validates that the timeout is greater than or equal to the expected block height
|
||||
// the bid transaction will be executed in.
|
||||
func (bd BuilderDecorator) ValidateTimeout(ctx sdk.Context, timeout int64) error {
|
||||
func (ad AuctionDecorator) ValidateTimeout(ctx sdk.Context, timeout int64) error {
|
||||
currentBlockHeight := ctx.BlockHeight()
|
||||
|
||||
// If the mode is CheckTx or ReCheckTx, we increment the current block height by one to
|
||||
@@ -18,9 +18,9 @@ import (
|
||||
defaultlane "github.com/skip-mev/block-sdk/lanes/base"
|
||||
"github.com/skip-mev/block-sdk/lanes/mev"
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/ante"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
buildertypes "github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/ante"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type AnteTestSuite struct {
|
||||
@@ -30,13 +30,13 @@ type AnteTestSuite struct {
|
||||
encodingConfig testutils.EncodingConfig
|
||||
random *rand.Rand
|
||||
|
||||
// builder setup
|
||||
builderKeeper keeper.Keeper
|
||||
// auction setup
|
||||
auctionkeeper keeper.Keeper
|
||||
bankKeeper *testutils.MockBankKeeper
|
||||
accountKeeper *testutils.MockAccountKeeper
|
||||
distrKeeper *testutils.MockDistributionKeeper
|
||||
stakingKeeper *testutils.MockStakingKeeper
|
||||
builderDecorator ante.BuilderDecorator
|
||||
auctionDecorator ante.AuctionDecorator
|
||||
key *storetypes.KVStoreKey
|
||||
authorityAccount sdk.AccAddress
|
||||
|
||||
@@ -58,19 +58,19 @@ func (suite *AnteTestSuite) SetupTest() {
|
||||
// General config
|
||||
suite.encodingConfig = testutils.CreateTestEncodingConfig()
|
||||
suite.random = rand.New(rand.NewSource(time.Now().Unix()))
|
||||
suite.key = storetypes.NewKVStoreKey(buildertypes.StoreKey)
|
||||
suite.key = storetypes.NewKVStoreKey(auctiontypes.StoreKey)
|
||||
testCtx := testutil.DefaultContextWithDB(suite.T(), suite.key, storetypes.NewTransientStoreKey("transient_test"))
|
||||
suite.ctx = testCtx.Ctx.WithIsCheckTx(true)
|
||||
|
||||
// Keepers set up
|
||||
ctrl := gomock.NewController(suite.T())
|
||||
suite.accountKeeper = testutils.NewMockAccountKeeper(ctrl)
|
||||
suite.accountKeeper.EXPECT().GetModuleAddress(buildertypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes()
|
||||
suite.accountKeeper.EXPECT().GetModuleAddress(auctiontypes.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.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encodingConfig.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@@ -79,7 +79,7 @@ func (suite *AnteTestSuite) SetupTest() {
|
||||
suite.stakingKeeper,
|
||||
suite.authorityAccount.String(),
|
||||
)
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.DefaultParams())
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, auctiontypes.DefaultParams())
|
||||
suite.Require().NoError(err)
|
||||
|
||||
// Lanes configuration
|
||||
@@ -120,7 +120,7 @@ func (suite *AnteTestSuite) anteHandler(ctx sdk.Context, tx sdk.Tx, _ bool) (sdk
|
||||
return ctx, nil
|
||||
}
|
||||
|
||||
return suite.builderDecorator.AnteHandle(ctx, tx, false, next)
|
||||
return suite.auctionDecorator.AnteHandle(ctx, tx, false, next)
|
||||
}
|
||||
|
||||
func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
@@ -266,7 +266,7 @@ func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
suite.ctx = suite.ctx.WithBlockHeight(1)
|
||||
|
||||
// Set the mev params
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.Params{
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, auctiontypes.Params{
|
||||
MaxBundleSize: maxBundleSize,
|
||||
ReserveFee: reserveFee,
|
||||
MinBidIncrement: minBidIncrement,
|
||||
@@ -296,7 +296,7 @@ func (suite *AnteTestSuite) TestAnteHandler() {
|
||||
|
||||
// Execute the ante handler
|
||||
suite.balance = balance
|
||||
suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.mevLane, suite.mempool)
|
||||
suite.auctionDecorator = ante.NewAuctionDecorator(suite.auctionkeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.mevLane, suite.mempool)
|
||||
_, err = suite.anteHandler(suite.ctx, mevTx, false)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
@@ -8,10 +8,10 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for the builder module.
|
||||
// GetQueryCmd returns the cli query commands for the auction module.
|
||||
func GetQueryCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
@@ -28,11 +28,11 @@ func GetQueryCmd() *cobra.Command {
|
||||
return cmd
|
||||
}
|
||||
|
||||
// CmdQueryParams implements a command that will return the current parameters of the builder module.
|
||||
// CmdQueryParams implements a command that will return the current parameters of the auction module.
|
||||
func CmdQueryParams() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "params",
|
||||
Short: "Query the current parameters of the builder module",
|
||||
Short: "Query the current parameters of the auction module",
|
||||
Args: cobra.NoArgs,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
clientCtx, err := client.GetClientQueryContext(cmd)
|
||||
@@ -12,15 +12,15 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// NewTxCmd returns a root CLI command handler for all x/builder transaction
|
||||
// NewTxCmd returns a root CLI command handler for all x/auction transaction
|
||||
// commands.
|
||||
func NewTxCmd() *cobra.Command {
|
||||
txCmd := &cobra.Command{
|
||||
Use: types.ModuleName,
|
||||
Short: "Builder transaction subcommands",
|
||||
Short: "auction transaction subcommands",
|
||||
DisableFlagParsing: true,
|
||||
SuggestionsMinimumDistance: 2,
|
||||
RunE: client.ValidateCmd,
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// ValidateBidInfo validates that the bid can be included in the auction.
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
@@ -159,11 +159,11 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
|
||||
tc.malleate()
|
||||
|
||||
// Set up the new builder keeper with mocks customized for this test case
|
||||
// Set up the new auction keeper with mocks customized for this test case
|
||||
suite.bankKeeper.EXPECT().GetBalance(suite.ctx, bidder.Address, minBidIncrement.Denom).Return(balance).AnyTimes()
|
||||
suite.bankKeeper.EXPECT().SendCoins(suite.ctx, bidder.Address, escrowAddress, reserveFee).Return(nil).AnyTimes()
|
||||
|
||||
suite.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encCfg.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@@ -179,7 +179,7 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
FrontRunningProtection: frontRunningProtection,
|
||||
MinBidIncrement: minBidIncrement,
|
||||
}
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
// Create the bundle of transactions ordered by accounts
|
||||
bundle := make([][]byte, 0)
|
||||
@@ -208,7 +208,7 @@ func (suite *KeeperTestSuite) TestValidateBidInfo() {
|
||||
Signers: signers,
|
||||
}
|
||||
|
||||
err := suite.builderKeeper.ValidateBidInfo(suite.ctx, highestBid, bidInfo)
|
||||
err := suite.auctionkeeper.ValidateBidInfo(suite.ctx, highestBid, bidInfo)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
} else {
|
||||
@@ -317,7 +317,7 @@ func (suite *KeeperTestSuite) TestValidateBundle() {
|
||||
}
|
||||
|
||||
// Validate the bundle
|
||||
err := suite.builderKeeper.ValidateAuctionBundle(bidder.Address, signers)
|
||||
err := suite.auctionkeeper.ValidateAuctionBundle(bidder.Address, signers)
|
||||
if tc.pass {
|
||||
suite.Require().NoError(err)
|
||||
} else {
|
||||
@@ -3,12 +3,12 @@ package keeper
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the builder module's state from a given genesis state.
|
||||
// InitGenesis initializes the auction module's state from a given genesis state.
|
||||
func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) {
|
||||
// Set the builder module's parameters.
|
||||
// Set the auction module's parameters.
|
||||
if err := k.SetParams(ctx, gs.Params); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -16,7 +16,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 builder module's parameters.
|
||||
// Get the auction module's parameters.
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@@ -5,22 +5,22 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.QueryServer = QueryServer{}
|
||||
|
||||
// QueryServer defines the builder module's gRPC querier service.
|
||||
// QueryServer defines the auction module's gRPC querier service.
|
||||
type QueryServer struct {
|
||||
keeper Keeper
|
||||
}
|
||||
|
||||
// NewQueryServer creates a new gRPC query server for the builder module.
|
||||
// NewQueryServer creates a new gRPC query server for the auction module.
|
||||
func NewQueryServer(keeper Keeper) *QueryServer {
|
||||
return &QueryServer{keeper: keeper}
|
||||
}
|
||||
|
||||
// Params queries all parameters of the builder module.
|
||||
// Params queries all parameters of the auction module.
|
||||
func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/rewards"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/rewards"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
type Keeper struct {
|
||||
@@ -65,9 +65,9 @@ func NewKeeperWithRewardsAddressProvider(
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Ensure that the builder module account exists.
|
||||
// Ensure that the auction module account exists.
|
||||
if accountKeeper.GetModuleAddress(types.ModuleName) == nil {
|
||||
panic("builder module account has not been set")
|
||||
panic("auction module account has not been set")
|
||||
}
|
||||
|
||||
return Keeper{
|
||||
@@ -79,7 +79,7 @@ func NewKeeperWithRewardsAddressProvider(
|
||||
}
|
||||
}
|
||||
|
||||
// Logger returns a builder module-specific logger.
|
||||
// Logger returns a auction module-specific logger.
|
||||
func (k Keeper) Logger(ctx sdk.Context) log.Logger {
|
||||
return ctx.Logger().With("module", "x/"+types.ModuleName)
|
||||
}
|
||||
@@ -89,7 +89,7 @@ func (k Keeper) GetAuthority() string {
|
||||
return k.authority
|
||||
}
|
||||
|
||||
// GetParams returns the builder module's parameters.
|
||||
// GetParams returns the auction module's parameters.
|
||||
func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) {
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
|
||||
@@ -97,7 +97,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 builder module")
|
||||
return types.Params{}, fmt.Errorf("no params found for the auction module")
|
||||
}
|
||||
|
||||
params := types.Params{}
|
||||
@@ -108,7 +108,7 @@ func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error) {
|
||||
return params, nil
|
||||
}
|
||||
|
||||
// SetParams sets the builder module's parameters.
|
||||
// SetParams sets the auction module's parameters.
|
||||
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error {
|
||||
store := ctx.KVStore(k.storeKey)
|
||||
|
||||
@@ -132,7 +132,7 @@ func (k Keeper) GetMaxBundleSize(ctx sdk.Context) (uint32, error) {
|
||||
return params.MaxBundleSize, nil
|
||||
}
|
||||
|
||||
// GetEscrowAccount returns the builder module's escrow account.
|
||||
// GetEscrowAccount returns the auction module's escrow account.
|
||||
func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@@ -142,7 +142,7 @@ func (k Keeper) GetEscrowAccount(ctx sdk.Context) (sdk.AccAddress, error) {
|
||||
return params.EscrowAccountAddress, nil
|
||||
}
|
||||
|
||||
// GetReserveFee returns the reserve fee of the builder module.
|
||||
// GetReserveFee returns the reserve fee of the auction module.
|
||||
func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coin, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@@ -152,7 +152,7 @@ func (k Keeper) GetReserveFee(ctx sdk.Context) (sdk.Coin, error) {
|
||||
return params.ReserveFee, nil
|
||||
}
|
||||
|
||||
// GetMinBidIncrement returns the minimum bid increment for the builder.
|
||||
// GetMinBidIncrement returns the minimum bid increment for the auction.
|
||||
func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coin, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@@ -162,7 +162,7 @@ func (k Keeper) GetMinBidIncrement(ctx sdk.Context) (sdk.Coin, error) {
|
||||
return params.MinBidIncrement, nil
|
||||
}
|
||||
|
||||
// GetProposerFee returns the proposer fee for the builder module.
|
||||
// GetProposerFee returns the proposer fee for the auction module.
|
||||
func (k Keeper) GetProposerFee(ctx sdk.Context) (math.LegacyDec, error) {
|
||||
params, err := k.GetParams(ctx)
|
||||
if err != nil {
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/golang/mock/gomock"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
type KeeperTestSuite struct {
|
||||
suite.Suite
|
||||
|
||||
builderKeeper keeper.Keeper
|
||||
auctionkeeper keeper.Keeper
|
||||
bankKeeper *testutils.MockBankKeeper
|
||||
accountKeeper *testutils.MockAccountKeeper
|
||||
distrKeeper *testutils.MockDistributionKeeper
|
||||
@@ -49,7 +49,7 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl)
|
||||
suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl)
|
||||
suite.authorityAccount = sdk.AccAddress([]byte("authority"))
|
||||
suite.builderKeeper = keeper.NewKeeper(
|
||||
suite.auctionkeeper = keeper.NewKeeper(
|
||||
suite.encCfg.Codec,
|
||||
suite.key,
|
||||
suite.accountKeeper,
|
||||
@@ -59,8 +59,8 @@ func (suite *KeeperTestSuite) SetupTest() {
|
||||
suite.authorityAccount.String(),
|
||||
)
|
||||
|
||||
err := suite.builderKeeper.SetParams(suite.ctx, types.DefaultParams())
|
||||
err := suite.auctionkeeper.SetParams(suite.ctx, types.DefaultParams())
|
||||
suite.Require().NoError(err)
|
||||
|
||||
suite.msgServer = keeper.NewMsgServerImpl(suite.builderKeeper)
|
||||
suite.msgServer = keeper.NewMsgServerImpl(suite.auctionkeeper)
|
||||
}
|
||||
@@ -9,17 +9,17 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.MsgServer = MsgServer{}
|
||||
|
||||
// MsgServer is the wrapper for the builder module's msg service.
|
||||
// MsgServer is the wrapper for the auction module's msg service.
|
||||
type MsgServer struct {
|
||||
Keeper
|
||||
}
|
||||
|
||||
// NewMsgServerImpl returns an implementation of the builder MsgServer interface.
|
||||
// NewMsgServerImpl returns an implementation of the auction MsgServer interface.
|
||||
func NewMsgServerImpl(keeper Keeper) *MsgServer {
|
||||
return &MsgServer{Keeper: keeper}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
||||
|
||||
testutils "github.com/skip-mev/block-sdk/testutils"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
@@ -48,7 +48,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
malleate: func() {
|
||||
params := types.DefaultParams()
|
||||
params.MaxBundleSize = 2
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
},
|
||||
expectErr: true,
|
||||
},
|
||||
@@ -63,7 +63,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
params := types.DefaultParams()
|
||||
params.ProposerFee = math.LegacyZeroDec()
|
||||
params.EscrowAccountAddress = escrow.Address
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
suite.bankKeeper.EXPECT().
|
||||
SendCoins(
|
||||
@@ -88,7 +88,7 @@ func (suite *KeeperTestSuite) TestMsgAuctionBid() {
|
||||
params := types.DefaultParams()
|
||||
params.ProposerFee = math.LegacyMustNewDecFromStr("0.30")
|
||||
params.EscrowAccountAddress = escrow.Address
|
||||
suite.builderKeeper.SetParams(suite.ctx, params)
|
||||
suite.auctionkeeper.SetParams(suite.ctx, params)
|
||||
|
||||
suite.distrKeeper.EXPECT().
|
||||
GetPreviousProposerConsAddr(suite.ctx).
|
||||
@@ -1,4 +1,4 @@
|
||||
package builder
|
||||
package auction
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -20,10 +20,10 @@ import (
|
||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
modulev1 "github.com/skip-mev/block-sdk/api/sdk/builder/module/v1"
|
||||
"github.com/skip-mev/block-sdk/x/builder/client/cli"
|
||||
"github.com/skip-mev/block-sdk/x/builder/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
modulev1 "github.com/skip-mev/block-sdk/api/sdk/auction/module/v1"
|
||||
"github.com/skip-mev/block-sdk/x/auction/client/cli"
|
||||
"github.com/skip-mev/block-sdk/x/auction/keeper"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -31,35 +31,35 @@ var (
|
||||
_ module.AppModuleBasic = AppModuleBasic{}
|
||||
)
|
||||
|
||||
// ConsensusVersion defines the current x/builder module consensus version.
|
||||
// ConsensusVersion defines the current x/auction module consensus version.
|
||||
const ConsensusVersion = 1
|
||||
|
||||
// AppModuleBasic defines the basic application module used by the builder module.
|
||||
// AppModuleBasic defines the basic application module used by the auction module.
|
||||
type AppModuleBasic struct {
|
||||
cdc codec.Codec
|
||||
}
|
||||
|
||||
// Name returns the builder module's name.
|
||||
// Name returns the auction module's name.
|
||||
func (AppModuleBasic) Name() string {
|
||||
return types.ModuleName
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the builder module's types on the given LegacyAmino codec.
|
||||
// RegisterLegacyAminoCodec registers the auction module's types on the given LegacyAmino codec.
|
||||
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||
types.RegisterLegacyAminoCodec(cdc)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the builder module's interface types.
|
||||
// RegisterInterfaces registers the auction module's interface types.
|
||||
func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
|
||||
types.RegisterInterfaces(registry)
|
||||
}
|
||||
|
||||
// DefaultGenesis returns default genesis state as raw bytes for the builder module.
|
||||
// DefaultGenesis returns default genesis state as raw bytes for the auction module.
|
||||
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
|
||||
return cdc.MustMarshalJSON(types.DefaultGenesisState())
|
||||
}
|
||||
|
||||
// ValidateGenesis performs genesis state validation for the builder module.
|
||||
// ValidateGenesis performs genesis state validation for the auction 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 {
|
||||
@@ -69,19 +69,19 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingCo
|
||||
return genState.Validate()
|
||||
}
|
||||
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the builder module.
|
||||
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the auction 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 builder module.
|
||||
// GetTxCmd returns the root tx command for the auction module.
|
||||
func (AppModuleBasic) GetTxCmd() *cobra.Command {
|
||||
return cli.NewTxCmd()
|
||||
}
|
||||
|
||||
// GetQueryCmd returns the root query command for the builder module.
|
||||
// GetQueryCmd returns the root query command for the auction module.
|
||||
func (AppModuleBasic) GetQueryCmd() *cobra.Command {
|
||||
return cli.GetQueryCmd()
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func (am AppModule) IsOnePerModuleType() {}
|
||||
// ConsensusVersion implements AppModule/ConsensusVersion.
|
||||
func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion }
|
||||
|
||||
// RegisterServices registers a the gRPC Query and Msg services for the x/builder
|
||||
// RegisterServices registers a the gRPC Query and Msg services for the x/auction
|
||||
// module.
|
||||
func (am AppModule) RegisterServices(cfc module.Configurator) {
|
||||
types.RegisterMsgServer(cfc.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
|
||||
@@ -125,7 +125,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 builder
|
||||
// InitGenesis performs the module's genesis initialization for the auction
|
||||
// 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
|
||||
@@ -135,7 +135,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.Ra
|
||||
return []abci.ValidatorUpdate{}
|
||||
}
|
||||
|
||||
// ExportGenesis returns the builder module's exported genesis state as raw
|
||||
// ExportGenesis returns the auction 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)
|
||||
@@ -165,7 +165,7 @@ type Inputs struct {
|
||||
type Outputs struct {
|
||||
depinject.Out
|
||||
|
||||
BuilderKeeper keeper.Keeper
|
||||
auctionkeeper keeper.Keeper
|
||||
Module appmodule.AppModule
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ func ProvideModule(in Inputs) Outputs {
|
||||
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
|
||||
}
|
||||
|
||||
builderKeeper := keeper.NewKeeper(
|
||||
auctionkeeper := keeper.NewKeeper(
|
||||
in.Cdc,
|
||||
in.Key,
|
||||
in.AccountKeeper,
|
||||
@@ -186,7 +186,7 @@ func ProvideModule(in Inputs) Outputs {
|
||||
authority.String(),
|
||||
)
|
||||
|
||||
m := NewAppModule(in.Cdc, builderKeeper)
|
||||
m := NewAppModule(in.Cdc, auctionkeeper)
|
||||
|
||||
return Outputs{BuilderKeeper: builderKeeper, Module: m}
|
||||
return Outputs{auctionkeeper: auctionkeeper, Module: m}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.RewardsAddressProvider = (*FixedAddressRewardsAddressProvider)(nil)
|
||||
@@ -3,7 +3,7 @@ package rewards
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
var _ types.RewardsAddressProvider = (*ProposerRewardsAddressProvider)(nil)
|
||||
@@ -20,17 +20,17 @@ func init() {
|
||||
sdk.RegisterLegacyAminoCodec(amino)
|
||||
}
|
||||
|
||||
// RegisterLegacyAminoCodec registers the necessary x/builder interfaces and
|
||||
// RegisterLegacyAminoCodec registers the necessary x/auction 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{}, "block-sdk/x/builder/MsgAuctionBid")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "block-sdk/x/builder/MsgUpdateParams")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgAuctionBid{}, "block-sdk/x/auction/MsgAuctionBid")
|
||||
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "block-sdk/x/auction/MsgUpdateParams")
|
||||
|
||||
cdc.RegisterConcrete(Params{}, "block-sdk/x/builder/Params", nil)
|
||||
cdc.RegisterConcrete(Params{}, "block-sdk/x/auction/Params", nil)
|
||||
}
|
||||
|
||||
// RegisterInterfaces registers the x/builder interfaces types with the
|
||||
// RegisterInterfaces registers the x/auction interfaces types with the
|
||||
// interface registry.
|
||||
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
||||
registry.RegisterImplementations(
|
||||
@@ -20,12 +20,12 @@ func DefaultGenesisState() *GenesisState {
|
||||
}
|
||||
}
|
||||
|
||||
// Validate performs basic validation of the builder module genesis state.
|
||||
// Validate performs basic validation of the auction module genesis state.
|
||||
func (gs GenesisState) Validate() error {
|
||||
return gs.Params.Validate()
|
||||
}
|
||||
|
||||
// GetGenesisStateFromAppState returns x/builder GenesisState given raw application
|
||||
// GetGenesisStateFromAppState returns x/auction GenesisState given raw application
|
||||
// genesis state.
|
||||
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState {
|
||||
var genesisState GenesisState
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/genesis.proto
|
||||
// source: sdk/auction/v1/genesis.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -27,7 +27,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/builder module.
|
||||
// GenesisState defines the genesis state of the x/auction module.
|
||||
type GenesisState struct {
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
@@ -36,7 +36,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_bec962a3edf90ddb, []int{0}
|
||||
return fileDescriptor_6fc9f0e935c2021b, []int{0}
|
||||
}
|
||||
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -72,7 +72,7 @@ func (m *GenesisState) GetParams() Params {
|
||||
return Params{}
|
||||
}
|
||||
|
||||
// Params defines the parameters of the x/builder module.
|
||||
// Params defines the parameters of the x/auction module.
|
||||
type Params struct {
|
||||
// max_bundle_size is the maximum number of transactions that can be bundled
|
||||
// in a single bundle.
|
||||
@@ -97,7 +97,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_bec962a3edf90ddb, []int{1}
|
||||
return fileDescriptor_6fc9f0e935c2021b, []int{1}
|
||||
}
|
||||
func (m *Params) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -162,45 +162,45 @@ func (m *Params) GetFrontRunningProtection() bool {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*GenesisState)(nil), "sdk.builder.v1.GenesisState")
|
||||
proto.RegisterType((*Params)(nil), "sdk.builder.v1.Params")
|
||||
proto.RegisterType((*GenesisState)(nil), "sdk.auction.v1.GenesisState")
|
||||
proto.RegisterType((*Params)(nil), "sdk.auction.v1.Params")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/genesis.proto", fileDescriptor_bec962a3edf90ddb) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/genesis.proto", fileDescriptor_6fc9f0e935c2021b) }
|
||||
|
||||
var fileDescriptor_bec962a3edf90ddb = []byte{
|
||||
var fileDescriptor_6fc9f0e935c2021b = []byte{
|
||||
// 499 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x6b, 0x13, 0x41,
|
||||
0x18, 0xc6, 0xb3, 0xb6, 0x06, 0x3b, 0x49, 0x2d, 0x5d, 0x4a, 0xd8, 0x46, 0xd9, 0x84, 0x1e, 0x24,
|
||||
0x14, 0xb2, 0x43, 0x54, 0x44, 0xbc, 0x35, 0xc6, 0x16, 0xc1, 0x43, 0xd8, 0x9e, 0xf4, 0xb2, 0xcc,
|
||||
0xce, 0xbe, 0xdd, 0x0e, 0xc9, 0xcc, 0x2c, 0x33, 0x93, 0x98, 0xf6, 0x23, 0x78, 0xf2, 0x63, 0x78,
|
||||
0xec, 0x41, 0xbf, 0x43, 0x8f, 0xc5, 0x93, 0x78, 0x28, 0x92, 0x1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||||
0xf3, 0x2a, 0x6c, 0x5c, 0xaf, 0xc2, 0xc6, 0x8f, 0x55, 0xd8, 0xf8, 0x30, 0xcc, 0x99, 0x39, 0x9d,
|
||||
0xa7, 0x11, 0x95, 0x1c, 0xeb, 0x19, 0x2b, 0x86, 0x1c, 0x4a, 0xfc, 0x37, 0x25, 0x73, 0x5e, 0x80,
|
||||
0x4e, 0x9b, 0x76, 0x9a, 0x9e, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x31, 0xe3, 0xa8, 0x13, 0xe1,
|
||||
0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
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}
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"cosmossdk.io/math"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/builder/types"
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
// TestMsgAuctionBid tests the ValidateBasic method of MsgAuctionBid
|
||||
@@ -35,7 +35,7 @@ func NewParams(
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultParams returns the default x/builder parameters.
|
||||
// DefaultParams returns the default x/auction parameters.
|
||||
func DefaultParams() Params {
|
||||
return NewParams(
|
||||
DefaultMaxBundleSize,
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/v1/query.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -38,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_83b6271e8d232d07, []int{0}
|
||||
return fileDescriptor_47f76418be29a6d6, []int{0}
|
||||
}
|
||||
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -77,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_83b6271e8d232d07, []int{1}
|
||||
return fileDescriptor_47f76418be29a6d6, []int{1}
|
||||
}
|
||||
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -114,34 +114,33 @@ func (m *QueryParamsResponse) GetParams() Params {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "sdk.builder.v1.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "sdk.builder.v1.QueryParamsResponse")
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "sdk.auction.v1.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "sdk.auction.v1.QueryParamsResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/query.proto", fileDescriptor_83b6271e8d232d07) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/query.proto", fileDescriptor_47f76418be29a6d6) }
|
||||
|
||||
var fileDescriptor_83b6271e8d232d07 = []byte{
|
||||
// 305 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_47f76418be29a6d6 = []byte{
|
||||
// 303 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x4e, 0xc9, 0xd6,
|
||||
0x4f, 0x2a, 0xcd, 0xcc, 0x49, 0x49, 0x2d, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa,
|
||||
0x4f, 0x2c, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa,
|
||||
0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2b, 0x4e, 0xc9, 0xd6, 0x83, 0xca, 0xe9, 0x95,
|
||||
0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0xa5, 0xf4, 0x41, 0x2c, 0x88, 0x2a, 0x29, 0x99,
|
||||
0xf4, 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xfd, 0xc4, 0x82, 0x4c, 0xfd, 0xc4, 0xbc, 0xbc, 0xfc, 0x92,
|
||||
0xc4, 0x92, 0xcc, 0xfc, 0xbc, 0x62, 0xa8, 0xac, 0x74, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0x31, 0xc4,
|
||||
0x5c, 0x34, 0x0b, 0xa4, 0x64, 0xd0, 0x2c, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x84, 0x6a, 0x55,
|
||||
0x12, 0xe1, 0x12, 0x0a, 0x04, 0x29, 0x0e, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c,
|
||||
0x4d, 0x2d, 0x2e, 0x51, 0xf2, 0xe6, 0x12, 0x46, 0x11, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15,
|
||||
0x32, 0xe1, 0x62, 0x2b, 0x00, 0x8b, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x89, 0xe9, 0xa1,
|
||||
0x3a, 0x5e, 0x0f, 0xa2, 0xde, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x5a, 0xa3, 0x56,
|
||||
0x46, 0x2e, 0x56, 0xb0, 0x69, 0x42, 0x35, 0x5c, 0x6c, 0x10, 0x15, 0x42, 0x4a, 0xe8, 0x3a, 0x31,
|
||||
0x1d, 0x21, 0xa5, 0x8c, 0x57, 0x0d, 0xc4, 0x49, 0x4a, 0x9a, 0x1d, 0xcf, 0x37, 0x68, 0x31, 0x36,
|
||||
0x5d, 0x7e, 0x32, 0x99, 0x49, 0x4e, 0x48, 0x46, 0x3f, 0x29, 0x27, 0x3f, 0x39, 0x5b, 0x17, 0xcd,
|
||||
0xc7, 0x10, 0x77, 0x38, 0xb9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47,
|
||||
0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94,
|
||||
0x6e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x76, 0x66, 0x81,
|
||||
0x6e, 0x6e, 0x6a, 0x19, 0x92, 0x51, 0x15, 0x70, 0xc3, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8,
|
||||
0xc0, 0x41, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x97, 0x9a, 0x15, 0x9d, 0xd7, 0x01, 0x00,
|
||||
0x00,
|
||||
0x44, 0x90, 0xfa, 0x62, 0xa8, 0xac, 0x74, 0x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 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x76, 0x66, 0x81, 0x6e, 0x6e,
|
||||
0x6a, 0x19, 0x92, 0x51, 0x15, 0x70, 0xc3, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x41,
|
||||
0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x23, 0x86, 0x8c, 0xe6, 0xd7, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -156,7 +155,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/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
@@ -170,7 +169,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, "/sdk.builder.v1.Query/Params", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Query/Params", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -179,7 +178,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/builder module.
|
||||
// Params queries the parameters of the x/auction module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
@@ -205,7 +204,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Query/Params",
|
||||
FullMethod: "/sdk.auction.v1.Query/Params",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
||||
@@ -214,7 +213,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Query",
|
||||
ServiceName: "sdk.auction.v1.Query",
|
||||
HandlerType: (*QueryServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@@ -223,7 +222,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/query.proto",
|
||||
Metadata: "sdk/auction/v1/query.proto",
|
||||
}
|
||||
|
||||
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/query.proto
|
||||
// source: sdk/auction/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{"block-sdk", "builder", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "auction", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/v1/tx.proto
|
||||
|
||||
package types
|
||||
|
||||
@@ -33,7 +33,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/builder
|
||||
// MsgAuctionBid defines a request type for sending bids to the x/auction
|
||||
// module.
|
||||
type MsgAuctionBid struct {
|
||||
// bidder is the address of the account that is submitting a bid to the
|
||||
@@ -51,7 +51,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_e97f973cb189144b, []int{0}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{0}
|
||||
}
|
||||
func (m *MsgAuctionBid) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -109,7 +109,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_e97f973cb189144b, []int{1}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{1}
|
||||
}
|
||||
func (m *MsgAuctionBidResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -138,13 +138,13 @@ func (m *MsgAuctionBidResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_MsgAuctionBidResponse proto.InternalMessageInfo
|
||||
|
||||
// MsgUpdateParams defines a request type for updating the x/builder module
|
||||
// MsgUpdateParams defines a request type for updating the x/auction module
|
||||
// parameters.
|
||||
type MsgUpdateParams struct {
|
||||
// authority is the address of the account that is authorized to update the
|
||||
// x/builder module parameters.
|
||||
// x/auction module parameters.
|
||||
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||
// params is the new parameters for the x/builder module.
|
||||
// params is the new parameters for the x/auction module.
|
||||
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
@@ -152,7 +152,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_e97f973cb189144b, []int{2}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{2}
|
||||
}
|
||||
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -203,7 +203,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_e97f973cb189144b, []int{3}
|
||||
return fileDescriptor_cb2030683390c1e9, []int{3}
|
||||
}
|
||||
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@@ -233,50 +233,50 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgAuctionBid)(nil), "sdk.builder.v1.MsgAuctionBid")
|
||||
proto.RegisterType((*MsgAuctionBidResponse)(nil), "sdk.builder.v1.MsgAuctionBidResponse")
|
||||
proto.RegisterType((*MsgUpdateParams)(nil), "sdk.builder.v1.MsgUpdateParams")
|
||||
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sdk.builder.v1.MsgUpdateParamsResponse")
|
||||
proto.RegisterType((*MsgAuctionBid)(nil), "sdk.auction.v1.MsgAuctionBid")
|
||||
proto.RegisterType((*MsgAuctionBidResponse)(nil), "sdk.auction.v1.MsgAuctionBidResponse")
|
||||
proto.RegisterType((*MsgUpdateParams)(nil), "sdk.auction.v1.MsgUpdateParams")
|
||||
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "sdk.auction.v1.MsgUpdateParamsResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("sdk/builder/v1/tx.proto", fileDescriptor_e97f973cb189144b) }
|
||||
func init() { proto.RegisterFile("sdk/auction/v1/tx.proto", fileDescriptor_cb2030683390c1e9) }
|
||||
|
||||
var fileDescriptor_e97f973cb189144b = []byte{
|
||||
// 536 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x4f, 0x8f, 0x12, 0x4f,
|
||||
0x10, 0x65, 0x96, 0xdf, 0x8f, 0x84, 0x16, 0x35, 0x4e, 0x56, 0xf9, 0xa3, 0x0e, 0xec, 0x18, 0x23,
|
||||
0x21, 0x61, 0x5a, 0x56, 0xdd, 0x03, 0xb7, 0xc5, 0x83, 0x27, 0x12, 0x83, 0x31, 0x31, 0x5e, 0x4c,
|
||||
0x0f, 0xd3, 0xe9, 0xed, 0xc0, 0x74, 0x4f, 0xa6, 0x1a, 0xb2, 0x7b, 0x33, 0x7b, 0xf4, 0x64, 0xe2,
|
||||
0x17, 0xf0, 0xe8, 0x91, 0x83, 0x37, 0xbf, 0xc0, 0x1e, 0x37, 0xea, 0x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0xbd, 0x87, 0xb2, 0x3e, 0x0f, 0x4a, 0x5b,
|
||||
0x35, 0xab, 0x7e, 0x69, 0xb7, 0xec, 0x19, 0xae, 0xb6, 0xe5, 0x19, 0x5b, 0xde, 0x63, 0xc9, 0x45,
|
||||
0x27, 0x7f, 0xf2, 0xa3, 0x9a, 0xf9, 0x30, 0x9f, 0x34, 0xac, 0x9e, 0x6e, 0xb0, 0x5d, 0x54, 0x50,
|
||||
0x31, 0x11, 0x40, 0x16, 0xb3, 0xa1, 0x94, 0xad, 0x65, 0xeb, 0x85, 0x5e, 0xaa, 0xd6, 0x7e, 0xf4,
|
||||
0xfb, 0x7d, 0x35, 0x73, 0x3c, 0x9f, 0x34, 0xcc, 0xb0, 0x37, 0xf3, 0x49, 0x63, 0xc7, 0x1f, 0xca,
|
||||
0xfe, 0xa0, 0xa9, 0xe3, 0x39, 0x3c, 0x0b, 0x28, 0x65, 0xc2, 0x2d, 0xa2, 0xeb, 0xa9, 0x42, 0x8f,
|
||||
0x42, 0x24, 0x05, 0x50, 0xf7, 0x93, 0x85, 0xae, 0x76, 0x81, 0x3d, 0x8f, 0x02, 0xa2, 0xe8, 0x53,
|
||||
0x12, 0x93, 0x10, 0xec, 0x3d, 0x94, 0x27, 0x23, 0x75, 0x20, 0x63, 0xae, 0x8e, 0x2e, 0x34, 0xbd,
|
||||
0xa2, 0xda, 0x0f, 0x51, 0x2e, 0x5a, 0x28, 0x18, 0xeb, 0x37, 0xbc, 0xf4, 0x55, 0x78, 0x89, 0x7e,
|
||||
0xe7, 0x3f, 0xed, 0xbb, 0x67, 0xb8, 0xed, 0xf6, 0xd2, 0xd1, 0x4a, 0x49, 0x9b, 0xba, 0xf3, 0x17,
|
||||
0x53, 0xeb, 0x9b, 0xba, 0x65, 0x54, 0xdc, 0x28, 0x2d, 0x8d, 0xed, 0x7e, 0xb7, 0x50, 0xb6, 0x0b,
|
||||
0xcc, 0x1e, 0x21, 0xb4, 0xf6, 0x98, 0xb7, 0x37, 0x57, 0x4a, 0xa5, 0x52, 0xb9, 0xfb, 0x4f, 0xf8,
|
||||
0x2c, 0xb4, 0x9d, 0xe3, 0x2f, 0xbf, 0xde, 0x6d, 0xdd, 0x74, 0xcb, 0x78, 0xb5, 0xe4, 0xda, 0x61,
|
||||
0xea, 0xb7, 0x7c, 0x81, 0x0a, 0xa9, 0x4c, 0xab, 0xe7, 0x28, 0xaf, 0x13, 0x2a, 0xf7, 0x2e, 0x20,
|
||||
0x2c, 0x87, 0x57, 0xfe, 0x7f, 0xad, 0x2f, 0xa6, 0xf3, 0xe4, 0x64, 0xea, 0x58, 0xa7, 0x53, 0xc7,
|
||||
0xfa, 0x39, 0x75, 0xac, 0xb7, 0x33, 0x27, 0x73, 0x3a, 0x73, 0x32, 0xdf, 0x66, 0x4e, 0xe6, 0x65,
|
||||
0x93, 0x71, 0x75, 0x30, 0xf2, 0xbd, 0xbe, 0x0c, 0x31, 0x0c, 0x78, 0xd4, 0x0c, 0xe9, 0x18, 0x9f,
|
||||
0x97, 0xa6, 0x3a, 0x8a, 0x28, 0xf8, 0xb9, 0xc5, 0xe1, 0x3f, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff,
|
||||
0x33, 0x09, 0xf2, 0x29, 0xdc, 0x03, 0x00, 0x00,
|
||||
var fileDescriptor_cb2030683390c1e9 = []byte{
|
||||
// 532 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcf, 0x6b, 0x13, 0x41,
|
||||
0x14, 0xce, 0x36, 0x1a, 0xc8, 0x18, 0x15, 0x97, 0x6a, 0x7e, 0xa8, 0x9b, 0x74, 0x45, 0x0c, 0x81,
|
||||
0xec, 0x98, 0xaa, 0x3d, 0xe4, 0xd6, 0x78, 0xf0, 0x14, 0x90, 0x88, 0x20, 0x5e, 0x64, 0x36, 0x3b,
|
||||
0x4c, 0x87, 0x74, 0x67, 0x96, 0x7d, 0x93, 0xd0, 0xde, 0xa4, 0x47, 0x4f, 0x82, 0xff, 0x80, 0x47,
|
||||
0x8f, 0x39, 0x78, 0xf3, 0x1f, 0xe8, 0xb1, 0xa8, 0x07, 0x2f, 0x8a, 0x24, 0x42, 0xfc, 0x33, 0x64,
|
||||
0xb2, 0x93, 0x26, 0x1b, 0x6a, 0x7b, 0x09, 0xd9, 0xf7, 0xbe, 0xf7, 0x7d, 0xef, 0xfb, 0xe6, 0xa1,
|
||||
0x22, 0x04, 0x03, 0x4c, 0x86, 0x7d, 0xc5, 0xa5, 0xc0, 0xa3, 0x16, 0x56, 0x07, 0x5e, 0x14, 0x4b,
|
||||
0x25, 0xed, 0x6b, 0x10, 0x0c, 0x3c, 0xd3, 0xf0, 0x46, 0xad, 0xca, 0x26, 0x93, 0x4c, 0xce, 0x5b,
|
||||
0x58, 0xff, 0x4b, 0x50, 0x95, 0x3b, 0x4c, 0x4a, 0xb6, 0x4f, 0x31, 0x89, 0x38, 0x26, 0x42, 0x48,
|
||||
0x45, 0x34, 0x1e, 0x4c, 0xd7, 0xe9, 0x4b, 0x08, 0x25, 0x60, 0x9f, 0x00, 0xc5, 0xa3, 0x96, 0x4f,
|
||||
0x15, 0x69, 0xe1, 0xbe, 0xe4, 0x62, 0x31, 0xbd, 0x26, 0xce, 0xa8, 0xa0, 0xc0, 0x17, 0xd3, 0xe5,
|
||||
0x64, 0xfa, 0x4d, 0x22, 0x9a, 0x7c, 0x98, 0x56, 0xd1, 0x10, 0x87, 0xc0, 0xf4, 0x5c, 0x08, 0xcc,
|
||||
0x34, 0x6e, 0x90, 0x90, 0x0b, 0x89, 0xe7, 0xbf, 0x49, 0xc9, 0xfd, 0x6e, 0xa1, 0xab, 0x5d, 0x60,
|
||||
0xbb, 0x89, 0x4c, 0x87, 0x07, 0xf6, 0x43, 0x94, 0xf3, 0x79, 0x10, 0xd0, 0xb8, 0x64, 0xd5, 0xac,
|
||||
0x7a, 0xbe, 0x53, 0xfa, 0xfa, 0x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0x0b, 0x63, 0xdb, 0x3f, 0x2d, 0x94, 0xed, 0x02, 0xb3, 0x87, 0x08, 0xad,
|
||||
0x3c, 0xe6, 0xdd, 0xf5, 0x95, 0x52, 0xa9, 0x54, 0xee, 0x9f, 0xdb, 0x3e, 0x0d, 0x6d, 0xeb, 0xe8,
|
||||
0xdb, 0x9f, 0x0f, 0x1b, 0xb7, 0xdd, 0x32, 0x5e, 0x2e, 0xb9, 0x72, 0x98, 0xfa, 0x2d, 0x5f, 0xa1,
|
||||
0x42, 0x2a, 0xd3, 0xea, 0x19, 0xcc, 0xab, 0x80, 0xca, 0x83, 0x0b, 0x00, 0x0b, 0xf1, 0xca, 0xe5,
|
||||
0xb7, 0xfa, 0x62, 0x3a, 0xcf, 0x8e, 0x27, 0x8e, 0x75, 0x32, 0x71, 0xac, 0xdf, 0x13, 0xc7, 0x7a,
|
||||
0x3f, 0x75, 0x32, 0x27, 0x53, 0x27, 0xf3, 0x63, 0xea, 0x64, 0x5e, 0x37, 0x19, 0x57, 0x7b, 0x43,
|
||||
0xdf, 0xeb, 0xcb, 0x10, 0xc3, 0x80, 0x47, 0xcd, 0x90, 0x8e, 0xf0, 0x59, 0x69, 0xaa, 0xc3, 0x88,
|
||||
0x82, 0x9f, 0x9b, 0x1f, 0xfe, 0xa3, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x72, 0xbe, 0x69, 0x7f,
|
||||
0xdc, 0x03, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -291,9 +291,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/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(ctx context.Context, in *MsgAuctionBid, opts ...grpc.CallOption) (*MsgAuctionBidResponse, error)
|
||||
// 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.
|
||||
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
|
||||
}
|
||||
@@ -308,7 +308,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, "/sdk.builder.v1.Msg/AuctionBid", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Msg/AuctionBid", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -317,7 +317,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, "/sdk.builder.v1.Msg/UpdateParams", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, "/sdk.auction.v1.Msg/UpdateParams", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -326,9 +326,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/builder module.
|
||||
// AuctionBid defines a method for sending bids to the x/auction module.
|
||||
AuctionBid(context.Context, *MsgAuctionBid) (*MsgAuctionBidResponse, error)
|
||||
// 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.
|
||||
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
|
||||
}
|
||||
@@ -358,7 +358,7 @@ func _Msg_AuctionBid_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Msg/AuctionBid",
|
||||
FullMethod: "/sdk.auction.v1.Msg/AuctionBid",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).AuctionBid(ctx, req.(*MsgAuctionBid))
|
||||
@@ -376,7 +376,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/sdk.builder.v1.Msg/UpdateParams",
|
||||
FullMethod: "/sdk.auction.v1.Msg/UpdateParams",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
|
||||
@@ -385,7 +385,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
}
|
||||
|
||||
var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sdk.builder.v1.Msg",
|
||||
ServiceName: "sdk.auction.v1.Msg",
|
||||
HandlerType: (*MsgServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
@@ -398,7 +398,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "sdk/builder/v1/tx.proto",
|
||||
Metadata: "sdk/auction/v1/tx.proto",
|
||||
}
|
||||
|
||||
func (m *MsgAuctionBid) Marshal() (dAtA []byte, err error) {
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: sdk/builder/v1/tx.proto
|
||||
// source: sdk/auction/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{"block-sdk", "builder", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
pattern_Msg_AuctionBid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"block-sdk", "auction", "v1", "bid"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -1,22 +0,0 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user