pocketcore

package
v0.0.0-...-21d70e9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaimTx

func ClaimTx(kp crypto.PrivateKey, cliCtx util.CLIContext, txBuilder auth.TxBuilder, header types.SessionHeader, totalProofs int64, root types.HashRange, evidenceType types.EvidenceType) (*sdk.TxResponse, error)

"ClaimTx" - A transaction that sends the total number of proofs (claim), the merkle root (for data integrity), and the header (for identification)

func ExportGenesis

func ExportGenesis(ctx sdk.Ctx, k keeper.Keeper) types.GenesisState

"ExportGenesis" - Exports the state in a genesis state object

func InitGenesis

func InitGenesis(ctx sdk.Ctx, keeper keeper.Keeper, data types.GenesisState) []abci.ValidatorUpdate

"InitGenesis" - Initializes the state with a genesis state object

func NewHandler

func NewHandler(keeper keeper.Keeper) sdk.Handler

"NewHandler" - Returns a handler for "pocketCore" type messages.

func ProofTx

func ProofTx(cliCtx util.CLIContext, txBuilder auth.TxBuilder, merkleProof types.MerkleProof, leafNode types.Proof, evidenceType types.EvidenceType) (*sdk.TxResponse, error)

"ProofTx" - A transaction to prove the claim that was previously sent (Merkle Proofs and leaf/cousin)

Types

type AppModule

type AppModule struct {
	AppModuleBasic // a fundamental structure for all mods
	// contains filtered or unexported fields
}

AppModule "AppModule" - The higher level building block for a module

func NewAppModule

func NewAppModule(keeper keeper.Keeper) AppModule

NewAppModule "NewAppModule" - Creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Ctx, req abci.RequestBeginBlock)

BeginBlock "BeginBlock" - Functionality that is called at the beginning of (every) block

func (AppModule) ConsensusParamsUpdate

func (am AppModule) ConsensusParamsUpdate(ctx sdk.Ctx) *abci.ConsensusParams

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Ctx, _ abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock "EndBlock" - Functionality that is called at the end of (every) block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage

ExportGenesis "ExportGenesis" - Exports the genesis from raw json

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis "InitGenesis" - Inits the module genesis from raw json

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler "NewHandler" - returns the handler for the module

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler "NewQuerierHandler" - returns the query handler for the module

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute "QuerierRoute" - returns the route of the module for queries

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants "RegisterInvariants" - Unused crisis checking

func (AppModule) Route

func (am AppModule) Route() string

Route "Route" - returns the route of the module

func (AppModule) UpgradeCodec

func (am AppModule) UpgradeCodec(ctx sdk.Ctx)

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic "AppModuleBasic" - The fundamental building block of a sdk module

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis "DefaultGenesis" - Returns the default genesis for the module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name "Name" - Returns the name of the module

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec "RegisterCodec" - Registers the codec for the module

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bytes json.RawMessage) error

ValidateGenesis "ValidateGenesis" - Validation check for genesis state bytes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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