sidechain

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ModuleName = types.ModuleName
	StoreKey   = types.StoreKey
	RouterKey  = types.RouterKey

	EventTypeCreateSpace   = types.EventTypeCreateSpace
	EventTypeTransferSpace = types.EventTypeTransferSpace
	EventTypeCreateRecord  = types.EventTypeCreateRecord

	AttributeKeySender       = types.AttributeKeySender
	AttributeKeyOwner        = types.AttributeKeyOwner
	AttributeKeyRecipient    = types.AttributeKeyRecipient
	AttributeKeySpaceId      = types.AttributeKeySpaceId
	AttributeKeyRecordHeight = types.AttributeKeyRecordHeight
)

Variables

View Source
var (
	NewKeeper       = keeper.NewKeeper
	ModuleCdc       = types.ModuleCdc
	DefaultGenesis  = types.DefaultGenesisState
	ValidateGenesis = types.ValidateGenesis
	NewGenesisState = types.NewGenesisState
)

Functions

This section is empty.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

BeginBlock returns the begin blocker for the layer2 module.

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

ConsensusVersion implements AppModule/ConsensusVersion.

func (AppModule) EndBlock

EndBlock returns the end blocker for the layer2 module.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage

func (AppModule) GenerateGenesisState

func (AppModule) GenerateGenesisState(simState *module.SimulationState)

AppModuleSimulation Implementation NOTE: we haven't made a concrete implementation for simulation of the layer2 module

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the layer2 module. It returns no validator updates.

func (AppModule) LegacyQuerierHandler

func (AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier

LegacyQuerierHandler returns the layer2 module's querier r.

func (AppModule) ProposalContents

func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

NewHandler returns the layer2 module's querier route name.

func (AppModule) RandomizedParams

func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(sdk.InvariantRegistry)

RegisterInvariants registers the layer2 module invariants.

func (AppModule) RegisterServices

func (am AppModule) RegisterServices(cfg module.Configurator)

func (AppModule) RegisterStoreDecoder

func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

func (AppModule) Route

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the layer2 module.

func (AppModule) WeightedOperations

func (AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation

type AppModuleBasic

type AppModuleBasic struct {
	// contains filtered or unexported fields
}

AppModuleBasic defines the basic application module used by layer2 module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the layer2 module.

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd() *cobra.Command

GetQueryCmd returns no root query command for the layer2 module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command for the layer2 module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the layer2 module's name.

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)

RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the layer2 module.

func (AppModuleBasic) RegisterInterfaces

func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the layer2 module's interface types

func (AppModuleBasic) RegisterLegacyAminoCodec

func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the layer2 module's types on the LegacyAmino codec.

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRESTRoutes registers the REST routes for the layer2 module.

func (AppModuleBasic) ValidateGenesis

ValidateGenesis performs genesis state validation for the layer2 module.

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgCreateBlockHeader

type MsgCreateBlockHeader = types.MsgCreateBlockHeader

type MsgCreateSpace

type MsgCreateSpace = types.MsgCreateSpace

type MsgTransferSpace

type MsgTransferSpace = types.MsgTransferSpace

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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