Skip to content

Commit

Permalink
Merge pull request #12 from rarimo/feature/cscalist-module
Browse files Browse the repository at this point in the history
Feature: cscalist module
  • Loading branch information
olegfomenko authored Apr 18, 2024
2 parents ee4a695 + 44b2328 commit a8b114d
Show file tree
Hide file tree
Showing 44 changed files with 5,687 additions and 250 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ release/
.vscode/
.DS_Store
vendor/
/genesis/

/config/validator
21 changes: 20 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ import (
bridgemodule "github.com/rarimo/rarimo-core/x/bridge"
bridgemodulekeeper "github.com/rarimo/rarimo-core/x/bridge/keeper"
bridgemoduletypes "github.com/rarimo/rarimo-core/x/bridge/types"
cscalistmodule "github.com/rarimo/rarimo-core/x/cscalist"
cscalistkeeper "github.com/rarimo/rarimo-core/x/cscalist/keeper"
cscalisttypes "github.com/rarimo/rarimo-core/x/cscalist/types"
"github.com/rarimo/rarimo-core/x/evm"
evmkeeper "github.com/rarimo/rarimo-core/x/evm/keeper"
evmtypes "github.com/rarimo/rarimo-core/x/evm/types"
Expand Down Expand Up @@ -202,6 +205,7 @@ var (

vestingmintmodule.AppModuleBasic{},
identitymodule.AppModuleBasic{},
cscalistmodule.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
)

Expand Down Expand Up @@ -283,6 +287,7 @@ type App struct {

VestingmintKeeper vestingmintmodulekeeper.Keeper
IdentityKeeper identitymodulekeeper.Keeper
CSCAListKeeper cscalistkeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
RarimocoreKeeper rarimocoremodulekeeper.Keeper

Expand Down Expand Up @@ -346,6 +351,7 @@ func New(
multisigmoduletypes.StoreKey, evmtypes.StoreKey, feemarkettypes.StoreKey,
vestingmintmoduletypes.StoreKey,
identitymoduletypes.StoreKey,
cscalisttypes.StoreKey,
// this line is used by starport scaffolding # stargate/app/storeKey
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey, evmtypes.TransientKey, feemarkettypes.TransientKey)
Expand Down Expand Up @@ -521,6 +527,14 @@ func New(
)
identityModule := identitymodule.NewAppModule(appCodec, app.IdentityKeeper, app.AccountKeeper, app.BankKeeper)

app.CSCAListKeeper = *cscalistkeeper.NewKeeper(
appCodec,
keys[cscalisttypes.StoreKey],
keys[cscalisttypes.MemStoreKey],
app.RarimocoreKeeper,
)
cscaListModule := cscalistmodule.NewAppModule(appCodec, app.CSCAListKeeper)

// Create Transfer Keepers
app.TransferKeeper = ibctransferkeeper.NewKeeper(
appCodec,
Expand Down Expand Up @@ -577,7 +591,8 @@ func New(
AddRoute(tokenmanagermoduletypes.RouterKey, tokenmanagermodule.NewProposalHandler(app.TokenmanagerKeeper)).
//AddRoute(banktypes.RouterKey, bank.NewProposalHandler(app.BankKeeper)).
AddRoute(oraclemanagermoduletypes.RouterKey, oraclemanagermodule.NewProposalHandler(app.OraclemanagerKeeper)).
AddRoute(bridgemoduletypes.RouterKey, bridgemodule.NewProposalHandler(app.BridgeKeeper))
AddRoute(bridgemoduletypes.RouterKey, bridgemodule.NewProposalHandler(app.BridgeKeeper)).
AddRoute(cscalisttypes.RouterKey, cscalistmodule.NewProposalHandler(app.CSCAListKeeper))

govConfig := govtypes.DefaultConfig()
app.GovKeeper = govkeeper.NewKeeper(
Expand Down Expand Up @@ -721,6 +736,7 @@ func New(
evmModule,
vestingmintModule,
identityModule,
cscaListModule,
// this line is used by starport scaffolding # stargate/app/appModule
)

Expand Down Expand Up @@ -759,6 +775,7 @@ func New(
multisigmoduletypes.ModuleName,
vestingmintmoduletypes.ModuleName,
identitymoduletypes.ModuleName,
cscalisttypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/beginBlockers
)

Expand Down Expand Up @@ -792,6 +809,7 @@ func New(
vestingtypes.ModuleName,
vestingmintmoduletypes.ModuleName,
identitymoduletypes.ModuleName,
cscalisttypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/endBlockers
)

Expand Down Expand Up @@ -834,6 +852,7 @@ func New(
crisistypes.ModuleName,
vestingmintmoduletypes.ModuleName,
identitymoduletypes.ModuleName,
cscalisttypes.ModuleName,

// this line is used by starport scaffolding # stargate/app/initGenesis
)
Expand Down
Loading

0 comments on commit a8b114d

Please sign in to comment.