Skip to content

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.