Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
upgrade registry
Browse files Browse the repository at this point in the history
  • Loading branch information
taryune committed Feb 28, 2024
1 parent 57bb714 commit 5c192a1
Show file tree
Hide file tree
Showing 43 changed files with 16,452 additions and 99,794 deletions.
245 changes: 126 additions & 119 deletions api/mycel/registry/v1beta1/tx.pulsar.go

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
_ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects
_ "github.com/mycel-domain/mycel/x/epochs/module"
_ "github.com/mycel-domain/mycel/x/furnace/module"
_ "github.com/mycel-domain/mycel/x/registry/module"

dbm "github.com/cosmos/cosmos-db"
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
Expand Down Expand Up @@ -84,6 +85,7 @@ import (
// Mycel Modules
epochsmodulekeeper "github.com/mycel-domain/mycel/x/epochs/keeper"
furnacemodulekeeper "github.com/mycel-domain/mycel/x/furnace/keeper"
registrymodulekeeper "github.com/mycel-domain/mycel/x/registry/keeper"
)

const (
Expand Down Expand Up @@ -151,7 +153,7 @@ type App struct {
// Mycel modules
EpochsKeeper epochsmodulekeeper.Keeper
FurnaceKeeper furnacemodulekeeper.Keeper
// RegistryKeeper registrymodulekeeper.Keeper
RegistryKeeper registrymodulekeeper.Keeper

// sm is the simulation manager
sm *module.SimulationManager
Expand Down Expand Up @@ -293,7 +295,7 @@ func New(
// Mycel Keepers
&app.EpochsKeeper,
&app.FurnaceKeeper,
// &app.RegistryKeeper,
&app.RegistryKeeper,
// this line is used by starport scaffolding # stargate/app/keeperDefinition
); err != nil {
panic(err)
Expand Down
26 changes: 16 additions & 10 deletions app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (

"google.golang.org/protobuf/types/known/durationpb"

_ "github.com/mycel-domain/mycel/x/epochs/module"

capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
Expand Down Expand Up @@ -67,6 +65,9 @@ import (
// Furnace
furnacemodulev1 "github.com/mycel-domain/mycel/api/mycel/furnace/module/v1"
furnacemoduletypes "github.com/mycel-domain/mycel/x/furnace/types"
// Registry
registrymodulev1 "github.com/mycel-domain/mycel/api/mycel/registry/module/v1"
registrymoduletypes "github.com/mycel-domain/mycel/x/registry/types"
)

var (
Expand Down Expand Up @@ -109,7 +110,7 @@ var (
// Mycel modules
epochsmoduletypes.ModuleName,
furnacemoduletypes.ModuleName,
// registrymoduletypes.ModuleName,
registrymoduletypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
}

Expand Down Expand Up @@ -138,7 +139,7 @@ var (
// Mycel modules
epochsmoduletypes.ModuleName,
furnacemoduletypes.ModuleName,
// registrymoduletypes.ModuleName,
registrymoduletypes.ModuleName,

// this line is used by starport scaffolding # stargate/app/beginBlockers
}
Expand All @@ -162,7 +163,7 @@ var (
// Mycel modules
epochsmoduletypes.ModuleName,
furnacemoduletypes.ModuleName,
// registrymoduletypes.ModuleName,
registrymoduletypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/endBlockers
}

Expand All @@ -183,7 +184,9 @@ var (
{Account: ibctransfertypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}},
{Account: ibcfeetypes.ModuleName},
{Account: icatypes.ModuleName},
// Mycel modules
// this line is used by starport scaffolding # stargate/app/maccPerms

}

// blocked account addresses
Expand Down Expand Up @@ -322,17 +325,20 @@ var (
{
Name: epochsmoduletypes.ModuleName,
Config: appconfig.WrapAny(&epochsmodulev1.Module{
HooksOrder: []string{furnacemoduletypes.ModuleName},
HooksOrder: []string{
furnacemoduletypes.ModuleName,
registrymoduletypes.ModuleName,
},
}),
},
{
Name: furnacemoduletypes.ModuleName,
Config: appconfig.WrapAny(&furnacemodulev1.Module{}),
},
// {
// Name: registrymoduletypes.ModuleName,
// Config: appconfig.WrapAny(&registrymodulev1.Module{}),
// },
{
Name: registrymoduletypes.ModuleName,
Config: appconfig.WrapAny(&registrymodulev1.Module{}),
},
// this line is used by starport scaffolding # stargate/app/moduleConfig
},
})
Expand Down
Loading

0 comments on commit 5c192a1

Please sign in to comment.