app

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 79 Imported by: 0

README

Clairveil Reference App

This directory contains the minimal Cosmos SDK reference app used by clairveild.

Korean version: README-kr.md

The purpose of this reference app is to validate the reusable x/privacy module on a real chain host. It lets maintainers run the local node, e2e smoke tests, and tutorial flow without mixing downstream features or validator operations into this repository.

This is not intended to be used as a production app as-is. It is the baseline implementation that teams can use to verify Clairveil privacy core behavior before importing or forking it.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNodeHome string

Functions

func ApplyClairveilGenesisDefaults

func ApplyClairveilGenesisDefaults(cdc codec.Codec, genesis map[string]json.RawMessage)

ApplyClairveilGenesisDefaults rewrites generic SDK genesis defaults to the canonical Clairveil reference-chain defaults.

func BlockedAddresses

func BlockedAddresses() map[string]bool

func GetMaccPerms

func GetMaccPerms() map[string][]string

func NewAnteHandler

func NewAnteHandler(options ante.HandlerOptions) (sdk.AnteHandler, error)

NewAnteHandler returns the standard signature/sequence validation chain.

Types

type BatchTransferRawFramingDecorator added in v0.2.0

type BatchTransferRawFramingDecorator struct{}

BatchTransferRawFramingDecorator enforces the per-message wire cap against the signed Any.value bytes. Msg.Size() only sees the decoded last value for a duplicate singular protobuf field and therefore remains a secondary decoded shape check, not the consensus raw-wire bound.

func (BatchTransferRawFramingDecorator) AnteHandle added in v0.2.0

func (BatchTransferRawFramingDecorator) AnteHandle(
	ctx sdk.Context,
	tx sdk.Tx,
	simulate bool,
	next sdk.AnteHandler,
) (sdk.Context, error)

type ClairveilApp

type ClairveilApp struct {
	*baseapp.BaseApp

	AccountKeeper         authkeeper.AccountKeeper
	BankKeeper            bankkeeper.Keeper
	StakingKeeper         *stakingkeeper.Keeper
	SlashingKeeper        slashingkeeper.Keeper
	MintKeeper            mintkeeper.Keeper
	DistrKeeper           distrkeeper.Keeper
	GovKeeper             govkeeper.Keeper
	ParamsKeeper          paramskeeper.Keeper
	ConsensusParamsKeeper consensusparamkeeper.Keeper
	PrivacyKeeper         privacykeeper.Keeper

	ModuleManager      *module.Manager
	BasicModuleManager module.BasicManager
	// contains filtered or unexported fields
}

func NewClairveilApp

func NewClairveilApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	baseAppOptions ...func(*baseapp.BaseApp),
) *ClairveilApp

func (*ClairveilApp) AppCodec

func (app *ClairveilApp) AppCodec() codec.Codec

func (*ClairveilApp) BeginBlocker

func (app *ClairveilApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)

func (*ClairveilApp) DefaultGenesis

func (app *ClairveilApp) DefaultGenesis() map[string]json.RawMessage

func (*ClairveilApp) EndBlocker

func (app *ClairveilApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)

func (*ClairveilApp) ExportAppStateAndValidators

func (app *ClairveilApp) ExportAppStateAndValidators(
	forZeroHeight bool,
	_ []string,
	modulesToExport []string,
) (servertypes.ExportedApp, error)

func (*ClairveilApp) GetKey

func (app *ClairveilApp) GetKey(storeKey string) *storetypes.KVStoreKey

func (*ClairveilApp) GetSubspace

func (app *ClairveilApp) GetSubspace(moduleName string) paramstypes.Subspace

func (*ClairveilApp) InitChainer

func (app *ClairveilApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)

func (*ClairveilApp) InterfaceRegistry

func (app *ClairveilApp) InterfaceRegistry() codectypes.InterfaceRegistry

func (*ClairveilApp) LegacyAmino

func (app *ClairveilApp) LegacyAmino() *codec.LegacyAmino

func (*ClairveilApp) LoadHeight

func (app *ClairveilApp) LoadHeight(height int64) error

func (*ClairveilApp) Name

func (app *ClairveilApp) Name() string

func (*ClairveilApp) RegisterAPIRoutes

func (app *ClairveilApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig serverconfig.APIConfig)

func (*ClairveilApp) RegisterNodeService

func (app *ClairveilApp) RegisterNodeService(clientCtx client.Context, cfg serverconfig.Config)

func (*ClairveilApp) RegisterTendermintService

func (app *ClairveilApp) RegisterTendermintService(clientCtx client.Context)

func (*ClairveilApp) RegisterTxService

func (app *ClairveilApp) RegisterTxService(clientCtx client.Context)

func (*ClairveilApp) TxConfig

func (app *ClairveilApp) TxConfig() client.TxConfig

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState is the module-name keyed application genesis state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL