Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Oct 26, 2024
1 parent 3c08d9b commit a7d69ac
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 130 deletions.
5 changes: 2 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ var maccPerms = map[string][]string{
feemarkettypes.ModuleName: {authtypes.Burner},
feemarkettypes.FeeCollectorName: {authtypes.Burner},
oracletypes.ModuleName: nil,
fractionnfttypes.ModuleName: {authtypes.Minter, authtypes.Burner},
fractionnfttypes.ModuleName: {authtypes.Minter, authtypes.Burner},
}

var (
Expand Down Expand Up @@ -260,7 +260,7 @@ type App struct {
// MANTRAChain keepers
TokenFactoryKeeper tokenfactorykeeper.Keeper
TaxKeeper taxkeeper.Keeper
FractionnftKeeper fractionnftkeeper.Keeper
FractionnftKeeper fractionnftkeeper.Keeper

// the module manager
ModuleManager *module.Manager
Expand Down Expand Up @@ -788,7 +788,6 @@ func New(
tax.NewAppModule(appCodec, app.TaxKeeper),
feemarket.NewAppModule(appCodec, *app.FeeMarketKeeper),
fractionnft.NewAppModule(appCodec, app.FractionnftKeeper, app.AccountKeeper, app.NFTKeeper, app.BankKeeper),

)

// BasicModuleManager defines the module BasicManager is in charge of setting up basic,
Expand Down
6 changes: 2 additions & 4 deletions app/decorators/msg_block_ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ type MsgFilterDecorator struct {
// - decorators.FilterDecorator(&banktypes.MsgSend{})
// This would block any MsgSend messages from being included in a transaction if set in ante.go
func FilterDecorator() MsgFilterDecorator {
return MsgFilterDecorator{

}
return MsgFilterDecorator{}
}

func (mfd MsgFilterDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
Expand Down Expand Up @@ -54,7 +52,7 @@ func (mfd MsgFilterDecorator) HasDisallowedMessage(ctx sdk.Context, msgs []sdk.M
return true
}
}

}

return false
Expand Down
56 changes: 28 additions & 28 deletions x/fractionnft/autocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,51 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "GetNftToken",
Use: "get <class_id> <nft_id>",
Short: "Get nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
RpcMethod: "GetNftToken",
Use: "get <class_id> <nft_id>",
Short: "Get nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
{ProtoField: "nft_id"},
},
},
},
},
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "MsgTokenizeNFT",
Use: "tokenize <class_id> <nft_id> <token_supply> <timeout_height>",
Short: "Tokenize nft",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
RpcMethod: "MsgTokenizeNFT",
Use: "tokenize <class_id> <nft_id> <token_supply> <timeout_height>",
Short: "Tokenize nft",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
{ProtoField: "nft_id"},
{ProtoField: "token_supply"},
{ProtoField: "timeout_height"},
},
},
},
},
{
RpcMethod: "MsgRemintNFT",
Use: "remint <class_id> <nft_id>",
Short: "Remint nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
RpcMethod: "MsgRemintNFT",
Use: "remint <class_id> <nft_id>",
Short: "Remint nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "class_id"},
{ProtoField: "nft_id"},
},
},
},
},
{
RpcMethod: "MsgMintNFT",
Use: "mint ",
Short: "Mint nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "name"},
RpcMethod: "MsgMintNFT",
Use: "mint ",
Short: "Mint nfttoken",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "name"},
{ProtoField: "id"},
{ProtoField: "description"},
{ProtoField: "image"},
{ProtoField: "category"},
},
},
},
},
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions x/fractionnft/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type ModuleInputs struct {
SlashingKeeper slashingkeeper.Keeper

accountKepper authkeeper.AccountKeeper
nftKeeper nftkeeper.Keeper
bankKeeper bankkeeper.Keeper
nftKeeper nftkeeper.Keeper
bankKeeper bankkeeper.Keeper
}

type ModuleOutputs struct {
Expand Down
Loading

0 comments on commit a7d69ac

Please sign in to comment.