forked from cerc-io/laconicd
- Add nitro server and x/nitro module
- wire go-nitro p2p through cometbft
- Add distsig server, currently WIP
- integrate DKG and DSS schemes into ABCI methods
- Remove deprecated features
- crisis module
- module invariants
- Update to use newer SDK patterns
- upgrade sdk to v0.53.x
- custom address codec
- expand use of depinject
- migrate e2e tests to system tests
- use depinject to set up integration tests
- change reserved protobuf field name `cerc.registry.v1.Record.type`
- Revise & add documentation
- TransferCoinsToModuleAccount: clarify function
- Update init.sh script
43 lines
1.1 KiB
Go
43 lines
1.1 KiB
Go
package app
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"cosmossdk.io/depinject"
|
|
"cosmossdk.io/depinject/appconfig"
|
|
"github.com/cosmos/cosmos-sdk/types/module"
|
|
"github.com/cosmos/cosmos-sdk/x/genutil"
|
|
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
|
|
"github.com/cosmos/cosmos-sdk/x/gov"
|
|
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
|
|
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
|
|
|
"git.vdb.to/cerc-io/laconicd/server"
|
|
"git.vdb.to/cerc-io/laconicd/utils"
|
|
)
|
|
|
|
var (
|
|
//go:embed app.yaml
|
|
AppModuleConfigYAML []byte
|
|
|
|
// AppModuleConfig returns the default app config.
|
|
AppModuleConfig = depinject.Configs(
|
|
appconfig.LoadYAML(AppModuleConfigYAML),
|
|
depinject.Provide(
|
|
server.NewGasService,
|
|
),
|
|
depinject.Supply(
|
|
utils.NewAddressCodec,
|
|
utils.NewValidatorAddressCodec,
|
|
utils.NewConsensusAddressCodec,
|
|
// supply custom module basics
|
|
map[string]module.AppModuleBasic{
|
|
genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
|
|
govtypes.ModuleName: gov.NewAppModuleBasic(
|
|
[]govclient.ProposalHandler{},
|
|
),
|
|
},
|
|
),
|
|
)
|
|
)
|